Skip to content

Commit

Permalink
Support performing tag releases
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Cruz Viotti <[email protected]>
  • Loading branch information
jviotti committed Jun 3, 2024
1 parent cea113e commit a8ad5bc
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,23 @@ jobs:
merge-multiple: true
- run: tree build

# TODO: Create a proper release if there is a tag instead
- run: gh config set prompt disabled
env:
GH_TOKEN: ${{ github.token }}
- run: gh release delete continuous --cleanup-tag --yes || true
env:
GH_TOKEN: ${{ github.token }}
- run: gh release create continuous --prerelease --draft=false --title continuous --target "$GITHUB_SHA" --generate-notes

- name: Perform Continuous Release
run: |
gh release delete continuous --cleanup-tag --yes || true
gh release create continuous --prerelease --draft=false --title continuous --target "$GITHUB_SHA" --generate-notes
gh release upload --clobber continuous build/out/*.zip
if: github.ref_type == 'branch'
env:
GH_TOKEN: ${{ github.token }}
- run: gh release upload --clobber continuous build/out/*.zip

- name: Perform Tag Release
run: |
gh release create ${{ github.ref_name }} --prerelease --draft=false --title ${{ github.ref_name }} --target "$GITHUB_SHA" --generate-notes
gh release upload --clobber ${{ github.ref_name }} build/out/*.zip
if: github.ref_type == 'tag'
env:
GH_TOKEN: ${{ github.token }}

0 comments on commit a8ad5bc

Please sign in to comment.