Release Stage #1
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 Stage | |
on: | |
- workflow_dispatch | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
security-events: write | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: temurin | |
- name: Generate SBOMs | |
run: ./gradlew cyclonedxBom | |
- name: Compile and test | |
run: ./gradlew build | |
- name: Publish staging artifacts | |
run: ./gradlew release | |
env: | |
MAVEN_CENTRAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} | |
MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }} | |
SIGNING_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }} | |
SIGNING_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }} |