Skip to content

Commit 777cdd3

Browse files
authored
Refactor release workflow for zsc binary build
1 parent 2ed2b8d commit 777cdd3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,28 @@ jobs:
2929
run: |
3030
cd compiler
3131
bun install
32+
shell: bash
3233

3334
- name: Build zsc binary
3435
run: |
3536
cd compiler
36-
mkdir -p dist
37+
mkdir dist
3738
bun build zsc.js --compile --outfile dist/zsc
38-
39-
39+
shell: bash
4040

4141
- name: Zip artifact
4242
run: |
4343
cd compiler/dist
4444
if [ "${{ matrix.os }}" = "windows-latest" ]; then
45-
powershell Compress-Archive zsc.exe zsc-${{ matrix.os }}.zip
45+
zip zsc-windows-latest.zip zsc.exe
46+
elif [ "${{ matrix.os }}" = "macos-latest" ]; then
47+
zip zsc-macos-latest.zip zsc
4648
else
47-
zip zsc-${{ matrix.os }}.zip zsc
49+
zip zsc-ubuntu-latest.zip zsc
4850
fi
4951
shell: bash
5052

5153
- name: Upload Release Asset
5254
uses: softprops/action-gh-release@v1
5355
with:
54-
files: compiler/dist/zsc-${{ matrix.os }}.zip
56+
files: compiler/dist/*.zip

0 commit comments

Comments
 (0)