Skip to content

Commit 601e9d6

Browse files
committed
Fix artifact upload
1 parent bdb4823 commit 601e9d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,10 @@ jobs:
238238
git config user.name github-actions
239239
git config user.email [email protected]
240240
- run: |
241-
VERSION=toolchain-$(date +%Y-%m-%d)-${{ inputs.build_number }}
241+
VERSION=toolchain-$(date +%Y.%m.%d)
242+
if [ "${{ inputs.build_number }}" != "0" ]; then VERSION="$VERSION-${{ inputs.build_number }}"; fi
242243
git tag -a $VERSION -m "Release $VERSION"
243244
git push --tags
244-
gh release create $VERSION artifacts/*
245+
gh release create $VERSION artifacts/*/*
245246
env:
246247
GH_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)