Skip to content

Commit 51b8525

Browse files
Merge pull request #25 from lightpanda-io/release
ci: include v8 version into artifact name
2 parents ad1294b + 696f967 commit 51b8525

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,16 @@ jobs:
3333
- run: zig build -Doptimize=ReleaseSafe
3434
- run: mv v8-build/${{ env.ARCH }}-${{ env.OS }}/release/ninja/obj/zig/libc_v8.a libc_v8_${{ env.OS }}_${{ env.ARCH }}.a
3535

36+
- name: Read version
37+
id: read-version
38+
run: |
39+
echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
40+
3641
- name: Upload the build
3742
uses: ncipollo/release-action@v1
3843
with:
3944
allowUpdates: true
40-
artifacts: libc_v8_${{ env.OS }}_${{ env.ARCH }}.a
45+
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a
4146

4247
build-aarch64-macos:
4348
env:
@@ -64,8 +69,13 @@ jobs:
6469
- run: zig build -Doptimize=ReleaseSafe
6570
- run: mv v8-build/${{ env.ARCH }}-${{ env.OS }}/release/ninja/obj/zig/libc_v8.a libc_v8_${{ env.OS }}_${{ env.ARCH }}.a
6671

72+
- name: Read version
73+
id: read-version
74+
run: |
75+
echo "version=`cat V8_REVISION`" >> "$GITHUB_OUTPUT"
76+
6777
- name: Upload the build
6878
uses: ncipollo/release-action@v1
6979
with:
7080
allowUpdates: true
71-
artifacts: libc_v8_${{ env.OS }}_${{ env.ARCH }}.a
81+
artifacts: libc_v8_${{steps.read-version.outputs.version}}_${{ env.OS }}_${{ env.ARCH }}.a

0 commit comments

Comments
 (0)