v0.1.3 #4
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 | |
with: | |
token: ${{ steps.generate_token.outputs.token }} | |
repository: chanzuckerberg/core-platform | |
path: core-platform | |
# - 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 | |
# token: ${{ steps.generate_token.outputs.token }} | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
workdir: core-platform/core/cli | |
args: release --clean | |
env: | |
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }} |