更新 GitHub Actions 和 GoReleaser 配置

This commit is contained in:
r0fus0d
2026-01-20 17:49:02 +08:00
parent 09045591a0
commit 2bda6512c3
2 changed files with 8 additions and 3 deletions

View File

@@ -6,23 +6,27 @@ on:
env:
GO_VERSION: 1.22.1
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout Source Code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Go Environment
uses: actions/setup-go@v3
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: 1.26.2
version: latest
args: release --clean
env:
CGO_ENABLED: 0

View File

@@ -1,3 +1,4 @@
version: 2
project_name: redc
before:
hooks: