File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,11 +32,13 @@ jobs:
3232 runs-on : self-hosted
3333 permissions :
3434 contents : write # IMPORTANT: required for action to create release branch
35- pull-requests : write # IMPORTANT: so release PR can be created
3635 id-token : write # IMPORTANT: mandatory for trusted publishing
3736 attestations : write # IMPORTANT: mandatory for attestations
3837 steps :
39- - name : Validate source branch and the version
38+ - name : Print inputs to the release workflow
39+ run : echo "${{ toJSON(github.event.inputs) }}"
40+
41+ - name : Validate the version
4042 shell : bash
4143 env :
4244 VERSION : ${{ github.event.inputs.version }}
7375 # Technically, this goes against the main reason for doing a dry run; to eliminate potential problems.
7476 # But unless something catastrophic happened, PR checks on source branch already ensured that all tests pass.
7577 - name : Set release version and build release
78+ env :
79+ NEW_VERSION : ${{ inputs.version }}
80+ DRY_RUN : ${{ inputs.dryRun }}
7681 run : |
77- ./mvnw -Dfull versions:set -DnewVersion=${{ github.event.inputs.version }}
78- ./mvnw -Dfull deploy -DskipTests=${{ github.event.inputs.dryRun }} -DaltDeploymentRepository=local::default::file://`pwd`/target/staging-deploy
82+ ./mvnw -Dfull versions:set -DnewVersion="$NEW_VERSION" -DgenerateBackupPoms=false
83+ ./mvnw -Dfull deploy -DskipTests=$DRY_RUN -DaltDeploymentRepository=local::default::file://`pwd`/target/staging-deploy
7984 cp docs/target/antora.yml docs/src/antora.yml
8085 git add docs/src/antora.yml
8186 find . -name 'pom.xml' | xargs git add
You can’t perform that action at this time.
0 commit comments