Skip to content

Commit 4d0126d

Browse files
Merge pull request #1337 from lightpanda-io/ci-check
ci: try to fix tag
2 parents 1d0f38b + b79193f commit 4d0126d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ env:
55
AWS_SECRET_ACCESS_KEY: ${{ secrets.NIGHTLY_BUILD_AWS_SECRET_ACCESS_KEY }}
66
AWS_BUCKET: ${{ vars.NIGHTLY_BUILD_AWS_BUCKET }}
77
AWS_REGION: ${{ vars.NIGHTLY_BUILD_AWS_REGION }}
8+
RELEASE: ${{ github.ref_type == 'tag' && github.ref_name || 'nightly' }}
89

910
on:
1011
push:
@@ -55,7 +56,7 @@ jobs:
5556
with:
5657
allowUpdates: true
5758
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
58-
tag: ${{ github.ref_type == 'tag' && '' || 'nightly' }}
59+
tag: ${{ env.RELEASE }}
5960

6061
build-linux-aarch64:
6162
env:
@@ -93,7 +94,7 @@ jobs:
9394
with:
9495
allowUpdates: true
9596
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
96-
tag: ${{ github.ref_type == 'tag' && '' || 'nightly' }}
97+
tag: ${{ env.RELEASE }}
9798

9899
build-macos-aarch64:
99100
env:
@@ -133,7 +134,7 @@ jobs:
133134
with:
134135
allowUpdates: true
135136
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
136-
tag: ${{ github.ref_type == 'tag' && '' || 'nightly' }}
137+
tag: ${{ env.RELEASE }}
137138

138139
build-macos-x86_64:
139140
env:
@@ -171,4 +172,4 @@ jobs:
171172
with:
172173
allowUpdates: true
173174
artifacts: lightpanda-${{ env.ARCH }}-${{ env.OS }}
174-
tag: ${{ github.ref_type == 'tag' && '' || 'nightly' }}
175+
tag: ${{ env.RELEASE }}

0 commit comments

Comments
 (0)