Skip to content

armgit / strix

Public Imported from GitHub
0

Open-source AI penetration testing tool to find and fix your app’s vulnerabilities.

ci(release): publish a GitHub release only from a tag so a manual run just builds

Ahmed Allam6a3d2ec9b844
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
index 0c76841f..50408020 100644
--- a/.github/workflows/build-release.yml
+++ b/.github/workflows/build-release.yml
@@ -107,6 +107,7 @@ jobs:
if-no-files-found: error
release:
+ if: startsWith(github.ref, 'refs/tags/')
needs: build
runs-on: ubuntu-latest
permissions:
@@ -121,6 +122,5 @@ jobs:
- name: Create Release
uses: softprops/action-gh-release@3bb12739c298aeb8a4eeaf626c5b8d85266b0e65 # v2.6.2
with:
- prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
generate_release_notes: true
files: release/**