cd #198
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This workflow will deploy the plugin to the Jenkins Update Center | |
| # Additional setup required: https://www.jenkins.io/redirect/continuous-delivery-of-plugins | |
| name: CD | |
| on: | |
| workflow_dispatch: | |
| check_run: | |
| types: | |
| - completed | |
| concurrency: | |
| group: cd-release | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| should_release: ${{ steps.verify-ci-status.outputs.result == 'success' }} | |
| steps: | |
| - name: Verify CI status | |
| uses: jenkins-infra/verify-ci-status-action@v1.2.2 | |
| id: verify-ci-status | |
| with: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| output_result: true | |
| - name: Release Drafter | |
| uses: release-drafter/release-drafter@v6 | |
| if: steps.verify-ci-status.outputs.result == 'success' | |
| with: | |
| name: next | |
| tag: next | |
| version: next | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: validate | |
| if: needs.validate.outputs.should_release == 'true' | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Check out | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '17' | |
| - name: Release | |
| uses: jenkins-infra/jenkins-maven-cd-action@v1 | |
| with: | |
| MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
| MAVEN_TOKEN: ${{ secrets.MAVEN_TOKEN }} | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |