Skip to content

goreleaser

goreleaser #1

Workflow file for this run

name: goreleaser
on:
workflow_dispatch: # 支持手动触发workflow流水线
release:
types: [created] # 表示在创建新的 Release 时触发
push:
tags:
- '*' # 推动新的Tag时触发
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}