Skip to content

go.mod update (#120) #66

go.mod update (#120)

go.mod update (#120) #66

Workflow file for this run

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