Skip to content

Commit

Permalink
switching to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
abenz1267 committed Mar 2, 2024
1 parent c62ca20 commit 71a567c
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,29 @@
name: goreleaser

on:
release:
types: [created]

permissions:
contents: write

jobs:
release-linux-amd64:
name: release linux/amd64
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: wangyoucao577/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 71a567c

Please sign in to comment.