Skip to content

Commit

Permalink
Update build-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax authored Sep 11, 2024
1 parent 4b7214f commit 3fa0fea
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,19 @@ jobs:
echo "release_exists=false" >> $GITHUB_ENV
fi
- name: Delete existing release if found
- name: Delete existing release and tag if found
if: env.release_exists == 'true'
run: |
gh release delete v${{ env.VERSION }} --yes
git tag -d v${{ env.VERSION }}
git push origin :refs/tags/v${{ env.VERSION }}
- name: Create GitHub Release
- name: Create new Git tag
run: |
git tag v${{ env.VERSION }}
git push origin v${{ env.VERSION }}
- name: Create new GitHub Release and Tag
uses: softprops/action-gh-release@v2
with:
tag_name: "v${{ env.VERSION }}"
Expand Down

0 comments on commit 3fa0fea

Please sign in to comment.