diff --git a/.github/workflows/ci_release.yml b/.github/workflows/ci_release.yml index 3b95c42b64..3c17aca2e3 100644 --- a/.github/workflows/ci_release.yml +++ b/.github/workflows/ci_release.yml @@ -4,9 +4,8 @@ on: push: branches: - main - # Trigger on version tags - tags: - - "v*" + release: + types: [published] pull_request: workflow_dispatch: inputs: @@ -111,7 +110,7 @@ jobs: runs-on: ubuntu-latest if: | github.event_name == 'workflow_dispatch' || - (github.event_name == 'push' && contains(github.ref, 'refs/tags/')) + github.event_name == 'release' permissions: "write-all" steps: - uses: actions/checkout@v4