diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 66096efe..585ce98c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: