|
1 | | -name: Release Smallrye Reactive Messaging |
| 1 | +name: Release |
| 2 | +run-name: Perform ${{github.event.inputs.tag || github.ref_name}} Release |
2 | 3 |
|
3 | 4 | on: |
| 5 | + push: |
| 6 | + tags: |
| 7 | + - '*' |
4 | 8 | workflow_dispatch: |
5 | 9 | inputs: |
6 | | - previousVersion: |
7 | | - description: 'Previous version' |
| 10 | + tag: |
| 11 | + description: 'Tag to release' |
8 | 12 | required: true |
9 | | - version: |
10 | | - description: 'Release version' |
11 | | - required: true |
12 | | - deployWebsite: |
13 | | - description: 'Shall we deploy the website?' |
14 | | - required: true |
15 | | - default: 'true' |
16 | | - clearRevAPI: |
17 | | - description: 'Shall we clear RevAPI justifications?' |
18 | | - required: true |
19 | | - default: 'true' |
| 13 | + |
| 14 | +permissions: |
| 15 | + attestations: write |
| 16 | + id-token: write |
| 17 | + # Needed for the publish-* workflows |
| 18 | + contents: write |
| 19 | + |
| 20 | +concurrency: |
| 21 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 22 | + cancel-in-progress: true |
20 | 23 |
|
21 | 24 | jobs: |
22 | | - release: |
23 | | - runs-on: ubuntu-latest |
24 | | - env: |
25 | | - GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |
26 | | - RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} |
27 | | - RELEASE_VERSION: ${{ github.event.inputs.version }} |
28 | | - DEPLOY_WEBSITE: ${{ github.event.inputs.deployWebsite }} |
29 | | - CLEAR_REVAPI: ${{ github.event.inputs.clearRevAPI }} |
30 | | - MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} |
31 | | - JRELEASER_TAG_NAME: ${{ github.event.inputs.version }} |
32 | | - JRELEASER_PREVIOUS_TAG_NAME: ${{ github.event.inputs.previousVersion }} |
33 | | - JRELEASER_GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} |
| 25 | + perform-release: |
| 26 | + name: Perform Release |
| 27 | + uses: smallrye/.github/.github/workflows/perform-release.yml@main |
| 28 | + secrets: inherit |
| 29 | + with: |
| 30 | + version: ${{github.event.inputs.tag || github.ref_name}} |
34 | 31 |
|
35 | | - steps: |
36 | | - - name: Git checkout |
37 | | - uses: actions/checkout@v4 |
38 | | - with: |
39 | | - fetch-depth: 0 |
40 | | - token: ${{ secrets.RELEASE_TOKEN }} |
41 | | - - name: Java setup |
42 | | - uses: actions/setup-java@v4 |
43 | | - with: |
44 | | - java-version: '17' |
45 | | - distribution: 'temurin' |
46 | | - cache: maven |
47 | | - gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} |
48 | | - gpg-passphrase: 'MAVEN_GPG_PASSPHRASE' |
49 | | - - name: Install just |
50 | | - uses: taiki-e/install-action@just |
51 | | - - name: Setup Python |
52 | | - uses: actions/setup-python@v5 |
53 | | - with: |
54 | | - python-version: 3.9 |
55 | | - cache: 'pipenv' |
56 | | - cache-dependency-path: documentation/Pipfile.lock |
57 | | - - name: Install pipenv |
58 | | - run: pip install pipenv |
59 | | - - name: Perform the release steps |
60 | | - run: | |
61 | | - curl -s "https://get.sdkman.io?rcupdate=false" | bash |
62 | | - source ~/.sdkman/bin/sdkman-init.sh && sdk install jbang |
63 | | - just perform-release |
| 32 | + deploy-site: |
| 33 | + name: GitHub Pages |
| 34 | + needs: perform-release |
| 35 | + uses: ./.github/workflows/push-deploy-docs.yml |
0 commit comments