Skip to content

fix: release token (#22) #52

fix: release token (#22)

fix: release token (#22) #52

Workflow file for this run

name: Release atala-automation
on:
workflow_dispatch:
push:
branches:
- "main"
jobs:
release-atala-automation:
name: "Release"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.ATALA_GITHUB_TOKEN }}
- name: Setup Gradle
uses: gradle/gradle-build-action@v3
- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20
- uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
git_user_signingkey: true
git_commit_gpgsign: true
- 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 }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
BASE64_ARMORED_GPG_SIGNING_KEY_MAVEN: ${{ secrets.BASE64_ARMORED_GPG_SIGNING_KEY_MAVEN }}
# Password is empty string, no need to set it
SIGNING_KEY_PASSWORD: ""
run: |
npm install
npx semantic-release