Skip to content

Update .goreleaser.yaml #4

Update .goreleaser.yaml

Update .goreleaser.yaml #4

Workflow file for this run

name: Release
on:
push:
tags:
- "v*.*.*" # 只在 tag 推送时触发,例如 v1.0.0
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.23' # 设置 Go 版本
- name: Install GoReleaser
run: |
go install github.com/goreleaser/goreleaser/v2@latest
- name: Run GoReleaser
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goreleaser release --clean