Skip to content

Commit

Permalink
Add goreleaser workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
laenzlinger committed Mar 25, 2024
1 parent 59e1d99 commit d69c162
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install asdf & tools
uses: asdf-vm/actions/install@v3
Expand Down
38 changes: 15 additions & 23 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: goreleaser
name: Release

on:
pull_request:
push:
tags:
- '*'

permissions:
contents: write
Expand All @@ -11,24 +12,15 @@ jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v4
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
# 'latest', 'nightly', or a semver
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install asdf & tools
uses: asdf-vm/actions/install@v3

- name: Release
run: goreleaser build --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d69c162

Please sign in to comment.