feat: add goreleaser
Some checks failed
Release / release (push) Failing after 5m54s

This commit is contained in:
2023-09-23 18:47:57 +08:00
parent 177317d3bd
commit a6d2bb055a
2 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,18 @@
name: Release
on:
push:
tags:
- v*
jobs:
release:
runs-on: [ubuntu-latest]
steps:
- uses: actions/setup-go@v3
with: { go-version: 1.20 }
- run: go install github.com/go-task/task/v3/cmd/task@latest
- run: apt update && apt-get install zip
- uses: actions/checkout@v3
- run: task deps
- run: git reset --hard
- run: GORELEASER_FORCE_TOKEN=gitea GITEA_TOKEN=${{ secrets.GE_TOKEN }} task release:prod