Skip to content

Commit

Permalink
upgrade to goreleaser 2: update config, goreleaser workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
patinthehat committed Jun 29, 2024
1 parent f2d6a9f commit 26307e2
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 12 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/run-goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,20 @@ jobs:

- run: git fetch --force --tags

- uses: goreleaser/goreleaser-action@v5
# validate the configuration file
- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
version: v2
args: check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: v2
args: release --clean --skip-docker
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }} # goreleaser-pro key
23 changes: 13 additions & 10 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json

version: 2

env:
- GO111MODULE=on
- CGO_ENABLED=0
Expand Down Expand Up @@ -27,16 +31,15 @@ builds:
- darwin_arm64
- darwin_amd64

brews:
-
name: '{{project.name}}'
homepage: 'https://github.com/{{project.vendor.github}}/{{project.name}}'
description: '{{project.description}}'
license: "MIT"
tap:
owner: '{{project.vendor.github}}'
name: homebrew-{{project.name}}
branch: main
# brews:
# - name: '{{project.name}}'
# homepage: 'https://github.com/{{project.vendor.github}}/{{project.name}}'
# description: '{{project.description}}'
# license: "MIT"
# repository:
# owner: '{{project.vendor.github}}'
# name: homebrew-{{project.name}}
# branch: main

checksum:
name_template: "checksums.txt"
Expand Down

0 comments on commit 26307e2

Please sign in to comment.