add workflow release file

This commit is contained in:
Haruki
2023-08-21 10:34:18 +09:00
parent 7bc3807ef6
commit 609d630d20

33
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: release
on:
push:
tags:
- "v*"
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
# チェックアウト
- uses: actions/checkout@v3
with:
fetch-depth: 0
# cliディレクトリに移動
- run: cd cli
# Go をセットアップ
- uses: actions/setup-go@v3
with:
go-version-file: go.mod
cache: true
# リリース
- uses: goreleaser/goreleaser-action@v4
with:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}