Skip to content

build(brew): auto install completion #37

build(brew): auto install completion

build(brew): auto install completion #37

Workflow file for this run

name: release
on:
push:
tags:
- '*'
permissions:
contents: write
env:
GOPRIVATE: github.com/ninech/apis
GH_ACCESS_TOKEN: ${{ secrets.GH_ACCESS_TOKEN }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- run: git fetch --force --tags
- name: setup go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/
- name: Define goreleaser flags
run: test -n "$(git tag --points-at HEAD)" || echo "GORELEASER_FLAGS=--snapshot" >> $GITHUB_ENV
- name: Run goreleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean ${{ env.GORELEASER_FLAGS }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
- name: Upload assets
uses: actions/upload-artifact@v4
with:
name: nctl
path: dist/*