Skip to content

Commit

Permalink
create go workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
seek4self authored Dec 3, 2021
1 parent a623796 commit bc0e39d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Go

on:
push:
tags:
- v*

jobs:

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17

- name: Create release on GitHub
uses: goreleaser/goreleaser-action@v2
with:
# GoReleaser 版本
version: latest
# 传递给 GoReleaser 的参数
args: release --rm-dist
env:
# 提供访问仓库token
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit bc0e39d

Please sign in to comment.