Skip to content

Commit

Permalink
fix: release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
louis030195 committed Jun 27, 2024
1 parent 86ea69e commit cfe5356
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,18 @@ jobs:
- name: Build
run: cargo build --release

- name: Check if Release Exists
id: check_release
run: |
if gh release view ${{ github.ref }}; then
echo "Release already exists"
exit 0
fi
env:
GITHUB_TOKEN: ${{ secrets.PAT }}

- name: Create Release
if: steps.check_release.outputs.release_exists == 'false'
id: create_release
uses: actions/create-release@v1
env:
Expand Down

0 comments on commit cfe5356

Please sign in to comment.