Add: github release workflow.

This commit is contained in:
cdryzun 2023-07-31 20:31:39 +08:00
parent 09fbc4ae99
commit 83aaf520c1

18
.github/workflows/release.yml vendored Normal file
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: GITHUB_TOKEN=${{ secrets.GH_TOKEN }} task release:prod