Skip to content

Commit

Permalink
+
Browse files Browse the repository at this point in the history
  • Loading branch information
ao committed Jul 24, 2024
1 parent 583fce0 commit 77e6e38
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,37 @@
# .github/workflows/release.yml
name: goreleaser

on:
pull_request:
push:

permissions:
contents: write
packages: write
# issues: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.22
-
name: Run GoReleaser
go-version: stable
# More assembly might be required: Docker logins, GPG, etc.
# It all depends on your needs.
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: '~> v2'
args: release --skip-validate --snapshot
# 'latest', 'nightly', or a semver
version: "latest"
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOARCH: amd64

0 comments on commit 77e6e38

Please sign in to comment.