-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 1.06 KB
/
release-cli.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
workdir: core/cli
args: release --clean
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}