Skip to content

Commit d33aa25

Browse files
authored
Update release.yml
1 parent 5cdd332 commit d33aa25

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,7 @@ on:
66
type: boolean
77
concurrency: ${{ github.workflow }}
88
jobs:
9-
tagver:
10-
outputs:
11-
tagver: ${{ steps.tagver.outputs.tagver }}
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v4
15-
- id: tagver
16-
run: |
17-
tagver=$(grep -Po 'TAGVER=\S+' script | head -n1 | cut -d'=' -f2)
18-
echo "tagver=$tagver" >> "$GITHUB_OUTPUT"
199
create-release:
20-
needs: tagver
2110
permissions:
2211
contents: write
2312
runs-on: ubuntu-latest
@@ -26,7 +15,7 @@ jobs:
2615
- uses: bjia56/setup-cosmocc@v0.0.3
2716
# This fakes the from-source build outputs. Building from Zig source takes way too long.
2817
- env:
29-
TAGVER: ${{ needs.tagver.outputs.tagver }}
18+
TAGVER: "0.13.0"
3019
run: |
3120
wget "https://ziglang.org/download/$TAGVER/zig-windows-x86_64-$TAGVER.zip"
3221
wget "https://ziglang.org/download/$TAGVER/zig-windows-aarch64-$TAGVER.zip"
@@ -52,14 +41,14 @@ jobs:
5241
rm "zig-linux-aarch64-$TAGVER.tar.xz"
5342
rm "zig-freebsd-x86_64-$TAGVER.tar.xz"
5443
- env:
55-
TAGVER: ${{ needs.tagver.outputs.tagver }}
44+
TAGVER: "0.13.0"
5645
run: ./build-zig-ape
5746
- env:
58-
TAGVER: ${{ needs.tagver.outputs.tagver }}
47+
TAGVER: "0.13.0"
5948
run: 7z a zig-ape-$TAGVER.zip zig-ape-$TAGVER/
6049
- env:
6150
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62-
TAGVER: ${{ needs.tagver.outputs.tagver }}
51+
TAGVER: "0.13.0"
6352
run: |
6453
gh release create "$TAGVER" \
6554
${{ (inputs.draft && '--draft') || '' }} \

0 commit comments

Comments
 (0)