Skip to content

Commit

Permalink
build(ci): improve Create release job
Browse files Browse the repository at this point in the history
  • Loading branch information
rhenwinch committed Sep 30, 2024
1 parent b1be7a3 commit ab2722c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
git push origin :refs/tags/pre-release || echo "Remote tag 'pre-release' does not exist."

echo "Creating new pre-release..."
gh release delete pre-release --yes || echo "Failed to delete last pre-release."
gh release create pre-release \
--title "PR-${{ needs.build.outputs.short_sha }}" \
--notes "$(cat << EOF
Expand Down Expand Up @@ -134,6 +135,7 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release delete ${{ github.ref_name }} --yes || echo "Failed to delete ${{ github.ref_name }} release."
gh release create ${{ github.ref_name }} \
--title "${{ github.ref_name }}" \
--notes "$(cat << EOF
Expand Down

0 comments on commit ab2722c

Please sign in to comment.