Skip to content

Merge pull request #2 from lu-zhengda/feat/monitor-templates-export #4

Merge pull request #2 from lu-zhengda/feat/monitor-templates-export

Merge pull request #2 from lu-zhengda/feat/monitor-templates-export #4

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Run tests
run: go test -race ./...
- name: Generate completions
run: |
mkdir -p completions
go run ./cmd/lanchr --generate-completion bash > completions/lanchr.bash
go run ./cmd/lanchr --generate-completion zsh > completions/lanchr.zsh
go run ./cmd/lanchr --generate-completion fish > completions/lanchr.fish
- uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}