Skip to content

Commit

Permalink
Merge pull request #4 from Staketab/pre-build
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
duccas authored Oct 20, 2023
2 parents 50cedc7 + 04047d9 commit 7036278
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@ jobs:
- name: Authenticate with GitHub CLI
run: echo "${{ secrets.GIT_TOKEN }}" | gh auth login --with-token

- name: Check if tag exists
id: check_tag
continue-on-error: true
run: |
if gh release view ${{ steps.get_info.outputs.version }}; then
echo "Tag already exists"
else
echo "::set-output name=tag_exists::false"
fi
- name: Create new tag if it doesn't exist
if: steps.check_tag.outputs.tag_exists != 'false'
run: |
git tag ${{ steps.get_info.outputs.version }}
git push origin ${{ steps.get_info.outputs.version }}
- name: Create GitHub Release
run: |
gh release create ${{ steps.get_info.outputs.version }} \
Expand Down

0 comments on commit 7036278

Please sign in to comment.