Skip to content

Commit 519e9a5

Browse files
authored
Update release.yml
1 parent 83f475e commit 519e9a5

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
tags:
66
- "v*"
77

8+
# This block is what makes it work without manual settings changes
89
permissions:
910
contents: write
1011

@@ -60,17 +61,15 @@ jobs:
6061
bun-version: 1.3.6
6162

6263
- name: Install dependencies
63-
# Updated path to new src/compiler directory
6464
working-directory: src/compiler
65-
shell: bash
6665
run: bun install
6766

6867
- name: Build binary
6968
working-directory: src/compiler
7069
shell: bash
7170
run: |
7271
mkdir -p dist
73-
# We compile to 'zsc' or 'zsc.exe' exactly as requested
72+
# Determine output name (zsc or zsc.exe)
7473
if [[ "${{ matrix.target }}" == *"windows"* ]]; then
7574
OUTFILE="dist/zsc.exe"
7675
else
@@ -83,13 +82,12 @@ jobs:
8382
--target=${{ matrix.target }} \
8483
--outfile "$OUTFILE"
8584
86-
# -------- Packaging Logic --------
8785
- name: Package Assets
8886
working-directory: src/compiler/dist
8987
shell: bash
9088
run: |
9189
if [[ "${{ matrix.target }}" == *"windows"* ]]; then
92-
# Archive contains 'zsc.exe' but zip is named by platform
90+
# File inside is zsc.exe, Zip name is unique per platform
9391
zip zsc-${{ matrix.name }}.zip zsc.exe
9492
else
9593
chmod +x zsc
@@ -99,6 +97,7 @@ jobs:
9997
- name: Upload Release Assets
10098
uses: softprops/action-gh-release@v1
10199
with:
100+
# This ensures it picks up the files from the correct new directory
102101
files: |
103102
src/compiler/dist/*.zip
104103
src/compiler/dist/*.tar.gz

0 commit comments

Comments
 (0)