Release #11
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 | |
concurrency: | |
group: release | |
on: | |
workflow_call: | |
inputs: | |
release-branch: | |
required: false | |
type: string | |
default: "main" | |
workflow_dispatch: | |
inputs: | |
release-branch: | |
description: "Branch to release from" | |
required: false | |
default: "main" | |
jobs: | |
release: | |
env: | |
GITHUB_ACTOR: "hyperledger-bot" | |
GITHUB_ACTOR_EMAIL: "[email protected]" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java and Scala | |
uses: olafurpg/setup-scala@v14 | |
with: | |
java-version: [email protected] | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "lts/*" | |
- name: Cache sbt | |
uses: coursier/[email protected] | |
- uses: crazy-max/ghaction-import-gpg@v3 | |
id: import_gpg | |
with: | |
gpg-private-key: ${{ secrets.HYP_BOT_GPG_PRIVATE }} | |
passphrase: ${{ secrets.HYP_BOT_GPG_PASSWORD }} | |
git-user-signingkey: true | |
git-commit-gpgsign: true | |
git_config_global: true | |
git_tag_gpgsign: true | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ env.GITHUB_ACTOR }} | |
password: ${{ env.GITHUB_TOKEN }} | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Release | |
env: | |
GIT_AUTHOR_EMAIL: ${{ steps.import_gpg.outputs.email }} | |
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }} | |
GIT_AUTHOR_NAME: ${{ steps.import_gpg.outputs.name }} | |
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm install | |
npx semantic-release |