Release Smallrye Reactive Messaging #33
This file contains 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
name: Release Smallrye Reactive Messaging | |
on: | |
workflow_dispatch: | |
inputs: | |
previousVersion: | |
description: 'Previous version' | |
required: true | |
version: | |
description: 'Release version' | |
required: true | |
deployWebsite: | |
description: 'Shall we deploy the website?' | |
required: true | |
default: 'true' | |
clearRevAPI: | |
description: 'Shall we clear RevAPI justifications?' | |
required: true | |
default: 'true' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
RELEASE_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
RELEASE_VERSION: ${{ github.event.inputs.version }} | |
DEPLOY_WEBSITE: ${{ github.event.inputs.deployWebsite }} | |
CLEAR_REVAPI: ${{ github.event.inputs.clearRevAPI }} | |
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }} | |
JRELEASER_TAG_NAME: ${{ github.event.inputs.version }} | |
JRELEASER_PREVIOUS_TAG_NAME: ${{ github.event.inputs.previousVersion }} | |
JRELEASER_GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.RELEASE_TOKEN }} | |
- name: Java setup | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
cache: maven | |
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} | |
gpg-passphrase: 'MAVEN_GPG_PASSPHRASE' | |
- name: Install just | |
uses: taiki-e/install-action@just | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
cache: 'pipenv' | |
cache-dependency-path: documentation/Pipfile.lock | |
- name: Install pipenv | |
run: pip install pipenv | |
- name: Perform the release steps | |
run: | | |
curl -s "https://get.sdkman.io?rcupdate=false" | bash | |
source ~/.sdkman/bin/sdkman-init.sh && sdk install jbang | |
just perform-release |