diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6433f5509e..3c1b6f054b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,9 +4,6 @@ permissions: contents: write on: - push: - tags: - - v[0-9]+.* pull_request: types: [closed] branches: @@ -20,7 +17,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 - + - name: Extract version from branch name id: extract_version run: | @@ -28,7 +25,7 @@ jobs: VERSION="${BRANCH_NAME#release/v}" echo "version=$VERSION" >> $GITHUB_OUTPUT echo "tag=v$VERSION" >> $GITHUB_OUTPUT - + - name: Create and push tag run: | git config --local user.email "action@github.com" @@ -38,7 +35,6 @@ jobs: create-draft-release: needs: auto-tag - if: startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -50,7 +46,6 @@ jobs: upload-assets: needs: create-draft-release - if: startsWith(github.ref, 'refs/tags/v') strategy: matrix: include: