diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26169da1d..56ad53ac2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,6 +82,12 @@ jobs: if: success() run: . ./CI/prepare-javadocs.sh + - name: Bump SNAPSHOT version on master (final release only) + if: success() && github.event.inputs.release_type == 'release' + run: . ./CI/bump-snapshot.sh + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout gh-pages uses: actions/checkout@v7 with: @@ -100,12 +106,6 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Bump SNAPSHOT version on main (final release only) - if: success() && github.event.inputs.release_type == 'release' - run: . ./CI/bump-snapshot.sh - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - env: MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}