Skip to content

goreleaser fix

goreleaser fix #86

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go 1.21
uses: actions/setup-go@v4
with:
go-version: 1.21.1
id: go
- name: Set Envs
run: |
echo GO_VERSION=$(go version | awk '{print $3;}') >> $GITHUB_ENV
- name: Login to Snapcraft
uses: samuelmeuli/action-snapcraft@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.TOKEN }}
GO_VERSION: ${{ env.GITHUB_GO_VERSION }}