mirror of
https://github.com/wgpsec/redc.git
synced 2026-01-24 12:43:19 +08:00
更新 GitHub Actions 和 GoReleaser 配置
This commit is contained in:
10
.github/workflows/release.yaml.yml
vendored
10
.github/workflows/release.yaml.yml
vendored
@@ -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
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
version: 2
|
||||
project_name: redc
|
||||
before:
|
||||
hooks:
|
||||
|
||||
Reference in New Issue
Block a user