Skip to content

chore(main): release 0.90.0 (#2725) #42

chore(main): release 0.90.0 (#2725)

chore(main): release 0.90.0 (#2725) #42

Workflow file for this run

on:
push:
branches:
- main
tags:
- '*'
name: release
jobs:
release-please:
runs-on: macos-latest
steps:
- uses: actions/github-script@v6
id: configure-changelog
with:
result-encoding: string
script: |
const changelogTypes = [
{type: "feat", section: "🎉 **What's new:**", hidden: false},
{type: "chore", section: "🔧 **Misc**", hidden: false},
{type: "fix", section: "🐛 **Bug fixes:**", hidden: false},
]
return JSON.stringify(changelogTypes)
# See https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
# For why we need to generate a token and not use the default
- name: Create token
id: create-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.CZI_RELEASE_PLEASE_APP_ID }}
private-key: ${{ secrets.CZI_RELEASE_PLEASE_PK }}
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
# These secrets will need to be configured for the repository:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Release please
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: simple
bump-minor-pre-major: true
changelog-types: ${{ steps.configure-changelog.outputs.result }}
token: ${{ steps.create-token.outputs.token }}
- uses: actions/checkout@v4
# we need to fetch all history and tags
# so we build the proper version
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
if: ${{ steps.release.outputs.release_created }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean --verbose
env:
GITHUB_TOKEN: ${{ steps.create-token.outputs.token }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
if: ${{ steps.release.outputs.release_created }}