Skip to content

Commit

Permalink
release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
hspitzley-czi committed Apr 19, 2024
1 parent 3437d81 commit 9ee1b16
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-cli.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
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 }}
14 changes: 14 additions & 0 deletions core/cli/.goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
project_name: argus

release:
github:
owner: chanzuckerberg
name: argus-artifacts

brews:
- description: "The command line tool for the Argus platform."
tap:
owner: chanzuckerberg
name: homebrew-tap
homepage: "https://github.com/chanzuckerberg/argus-artifacts"
test: system "#{bin}/argus version"

0 comments on commit 9ee1b16

Please sign in to comment.