mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-04 04:19:09 +00:00
feat: goreleaser-action v6 (#4670)
Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
16
.github/workflows/release.yml
vendored
16
.github/workflows/release.yml
vendored
@@ -19,13 +19,15 @@ jobs:
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: Run GoReleaser for stable release
|
||||
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5
|
||||
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6
|
||||
if: (!contains(github.ref, 'pre'))
|
||||
with:
|
||||
version: v1.16.2
|
||||
# You can pass flags to goreleaser via GORELEASER_ARGS
|
||||
# --clean will save you deleting the dist dir
|
||||
args: release --clean
|
||||
distribution: goreleaser # or 'goreleaser-pro'
|
||||
version: "~> v2" # or 'latest', 'nightly', semver
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -41,18 +43,6 @@ jobs:
|
||||
env:
|
||||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
- name: Run GoReleaser for pre-release
|
||||
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5
|
||||
if: contains(github.ref, 'pre')
|
||||
with:
|
||||
version: v1.16.2
|
||||
# You can pass flags to goreleaser via GORELEASER_ARGS
|
||||
# --clean will save you deleting the dist dir
|
||||
args: release --clean --release-notes=tmp-CHANGELOG.md
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
GORELEASER_CURRENT_TAG: ${{ steps.changelog.outputs.RELEASE_TAG }}
|
||||
|
||||
homebrew:
|
||||
name: "Bump Homebrew formula"
|
||||
runs-on: ubuntu-22.04
|
||||
|
||||
@@ -1,15 +1,27 @@
|
||||
version: 2
|
||||
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
|
||||
builds:
|
||||
- targets:
|
||||
- darwin_amd64
|
||||
- darwin_arm64
|
||||
- linux_386
|
||||
- linux_amd64
|
||||
- linux_arm
|
||||
- linux_arm64
|
||||
- windows_386
|
||||
- windows_amd64
|
||||
- id: atlantis
|
||||
|
||||
targets:
|
||||
- darwin_amd64
|
||||
- darwin_arm64
|
||||
- linux_386
|
||||
- linux_amd64
|
||||
- linux_arm
|
||||
- linux_arm64
|
||||
- windows_386
|
||||
- windows_amd64
|
||||
|
||||
flags:
|
||||
- -trimpath
|
||||
|
||||
ldflags:
|
||||
- -s -w
|
||||
- -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
|
||||
|
||||
archives:
|
||||
- id: zip
|
||||
@@ -19,7 +31,7 @@ archives:
|
||||
- none*
|
||||
|
||||
checksum:
|
||||
name_template: 'checksums.txt'
|
||||
name_template: "checksums.txt"
|
||||
|
||||
changelog:
|
||||
skip: true
|
||||
|
||||
Reference in New Issue
Block a user