This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
Release π #5
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 π | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: Version to release | |
required: true | |
type: string | |
permissions: | |
contents: write | |
jobs: | |
publish-release: | |
name: Create the changelog and push the release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
ssh-key: ${{ secrets.SSH_DEPLOY_KEY }} | |
fetch-depth: 0 | |
- name: Import GPG key | |
uses: crazy-max/ghaction-import-gpg@v6 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
git_user_signingkey: true | |
git_tag_gpgsign: true | |
git_commit_gpgsign: true | |
- name: Setup node env π | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 'lts/*' | |
check-latest: true | |
- name: Bump version π | |
working-directory: gradle/changelogen | |
run: | | |
npx --yes changelogen@latest --release --push -r ${{ inputs.version }} | |
npx --yes changelogen@latest gh release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |