Skip to content

Commit

Permalink
minor fixes to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronSaikovski committed Aug 16, 2023
1 parent 72ebde4 commit 8455855
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ">=1.19.0"
go-version: ">=1.20.0"

- name: Verify dependencies
run: go mod verify
Expand Down
16 changes: 7 additions & 9 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,27 @@
name: goreleaser

on:
release:
release:

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v4
-
name: Run GoReleaser
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8 changes: 4 additions & 4 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
#before:
#hooks:
# You may remove this if you don't use go modules.
- go mod tidy
#- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
#- go generate ./...
builds:
- env:
- CGO_ENABLED=0
Expand Down

0 comments on commit 8455855

Please sign in to comment.