v0.1.0 #1
Workflow file for this run
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
on: | |
release: | |
types: [published] | |
name: release-cli | |
jobs: | |
go-release-cli: | |
runs-on: [ARM64, self-hosted, Linux] | |
steps: | |
# 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: Generate token | |
id: generate_token | |
uses: chanzuckerberg/[email protected] | |
with: | |
app_id: ${{ secrets.CZI_RELEASE_PLEASE_APP_ID }} | |
private_key: ${{ secrets.CZI_RELEASE_PLEASE_PK }} | |
- uses: actions/checkout@v4 | |
# we need to fetch all history and tags, | |
# so we build the proper version | |
# NOTE: this needs to happen after the tag is created so the tag is present locally | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: core/go.mod | |
cache: true | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
workdir: core/cli | |
args: release --rm-dist | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} |