We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c592015 commit fe058dfCopy full SHA for fe058df
1 file changed
.github/workflows/release_build.yaml
@@ -19,6 +19,22 @@ jobs:
19
shell: msys2 {0}
20
run: |
21
./install.sh
22
+
23
+ - name: Delete release and tag on failure
24
+ if: failure()
25
+ run: |
26
+ # Install GitHub CLI
27
+ choco install gh -y
28
29
+ # Authenticate GitHub CLI
30
+ gh auth login --with-token < $env:GITHUB_TOKEN
31
32
+ # Delete the release and tag
33
+ gh release delete $env:GITHUB_REF_NAME --cleanup-tag --yes
34
+ env:
35
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36
+ GITHUB_REF_NAME: ${{ github.event.release.tag_name }}
37
38
# Upload artifacts to the release
39
- name: Upload to GitHub Release
40
uses: softprops/action-gh-release@v2
0 commit comments