Skip to content

Merge pull request #189 from ninech/fix-launcher-path #44

Merge pull request #189 from ninech/fix-launcher-path

Merge pull request #189 from ninech/fix-launcher-path #44

Workflow file for this run

name: release
on:
push:
tags:
- '*'
permissions:
contents: write
packages: 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: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- 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/*