Skip to content

Commit

Permalink
workflow: build-package: create release if it doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
flightlessmango committed May 25, 2024
1 parent f22d322 commit 038478a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
set -x
git config --global hub.protocol https
hub release create -p -m "Release $tag_name" "$tag_name"
assets=()
for pkg in ./build/*.tar.*; do
echo $pkg
assets+=("-a" "$pkg")
done
tag_name="${GITHUB_REF##*/}"
hub release edit "${assets[@]}" -m "" "$tag_name"
- name: Upload artifact
Expand Down

0 comments on commit 038478a

Please sign in to comment.