|
| 1 | +name: Maven release next version |
| 2 | + |
| 3 | +on: |
| 4 | + workflow_dispatch: |
| 5 | + |
| 6 | +jobs: |
| 7 | + build: |
| 8 | + runs-on: ubuntu-latest |
| 9 | + steps: |
| 10 | + - uses: actions/checkout@master |
| 11 | + - name: Import Secrets |
| 12 | + |
| 13 | + with: |
| 14 | + url: ${{ secrets.VAULT_ADDR }} |
| 15 | + token: ${{ secrets.CI_SECRET_READER_PERIODIC_TOKEN }} |
| 16 | + caCertificate: ${{ secrets.VAULTCA }} |
| 17 | + secrets: | |
| 18 | + ci/data/gh-workflows/maven-danubetech-nexus username | MAVEN_USERNAME ; |
| 19 | + ci/data/gh-workflows/maven-danubetech-nexus password | MAVEN_PASSWORD ; |
| 20 | + ci/data/gh-workflows/maven-release-workflow token | TOKEN ; |
| 21 | + ci/data/gh-workflows/deployment-status slack-webhook-url | SLACK_WEBHOOK_URL |
| 22 | + - name: Release to Danubetech Nexus |
| 23 | + |
| 24 | + with: |
| 25 | + release-branch-name: main |
| 26 | + maven-repo-server-id: danubetech-maven-releases |
| 27 | + maven-repo-server-username: ${{ env.MAVEN_USERNAME }} |
| 28 | + maven-repo-server-password: ${{ env.MAVEN_PASSWORD }} |
| 29 | + access-token: ${{ env.TOKEN }} |
| 30 | + version-minor: true |
| 31 | + maven-development-version-number: ${parsedVersion.majorVersion}.${parsedVersion.nextMinorVersion}-SNAPSHOT |
| 32 | + maven-release-version-number: ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.0 |
| 33 | + git-release-bot-name: "admin-bot" |
| 34 | + git-release-bot-email: "[email protected]" |
| 35 | + maven-args: "-Dmaven.javadoc.skip=true -DskipTests -DskipITs" |
| 36 | + - name: Slack notification |
| 37 | + uses: 8398a7/action-slack@v3 |
| 38 | + with: |
| 39 | + status: ${{ job.status }} |
| 40 | + fields: repo,commit,action,eventName,ref,workflow |
| 41 | + env: |
| 42 | + SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }} |
| 43 | + if: failure() |
0 commit comments