Skip to content

发行版

发行版 #275

Workflow file for this run

name: 发行版
on:
workflow_run:
workflows: [最新版]
types:
- completed
jobs:
goreleaser:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_branch, 'v') }}
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@master
with:
go-version: '1.25'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@master
with:
version: "~> v2"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}