cicd: Switched to latest JReleaser instead of early-access #323
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: EarlyAccess | |
on: | |
push: | |
branches: [ main ] | |
permissions: | |
actions: write | |
id-token: write | |
contents: write | |
jobs: | |
precheck: | |
name: Precheck | |
uses: redis-developer/riot/.github/workflows/step-precheck.yml@main | |
secrets: inherit | |
jlink: | |
name: Jlink | |
needs: [precheck] | |
if: endsWith(${{ needs.precheck.outputs.version }}, '-SNAPSHOT') | |
uses: redis-developer/riot/.github/workflows/step-jlink.yml@main | |
with: | |
project-version: ${{ needs.precheck.outputs.version }} | |
secrets: | |
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
release: | |
name: Release | |
needs: [precheck, jlink] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Download artifacts | |
uses: actions/download-artifact@v3 | |
with: | |
name: artifacts | |
path: plugins | |
- name: Download jlink | |
uses: actions/download-artifact@v3 | |
with: | |
name: jlink | |
path: out/jreleaser/assemble/riot-standalone/jlink | |
- name: Release | |
uses: jreleaser/release-action@v2 | |
with: | |
version: latest | |
arguments: full-release | |
env: | |
JRELEASER_PROJECT_VERSION: ${{ needs.precheck.outputs.version }} | |
JRELEASER_GITHUB_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }} | |
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | |
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} | |
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_SECRET_KEY }} | |
JRELEASER_DOCKER_DEFAULT_PASSWORD: ${{ secrets.JRELEASER_DOCKER_PASSWORD }} | |
- name: JReleaser release output | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: jreleaser-release | |
path: | | |
out/jreleaser/trace.log | |
out/jreleaser/output.properties |