Skip to content

release

release #3

Workflow file for this run

name: release
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
packages: write
discussions: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install tools
uses: ./.github/actions/install-tools
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Import signing GPG key
id: gpg-signing-key
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Release with semantic-release
run: npx semantic-release
env:
DOCKER_BUILD_PLATFORMS: linux/amd64,linux/arm64/v8
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signing.gnupg.keyName: '${{ steps.gpg-signing-key.outputs.keyid }}'
ORG_GRADLE_PROJECT_signing.gnupg.passphrase: '${{ secrets.GPG_PASSPHRASE }}'
ARTIFACTORY_USERNAME: '${{ secrets.ARTIFACTORY_USERNAME }}'
ARTIFACTORY_PASSWORD: '${{ secrets.ARTIFACTORY_PASSWORD }}'