Skip to content

Commit

Permalink
Add release actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
bluekeyes committed Jan 9, 2024
1 parent 396691b commit 3a54a58
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Go

on:
pull_request:
push:
Expand All @@ -12,12 +13,12 @@ jobs:
name: Verify
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.20
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"

- name: Check out code into the Go module directory
- name: Checkout
uses: actions/checkout@v4

- name: Lint
Expand Down
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
release:
types: [published]

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.20"

- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: v1.23.0
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3a54a58

Please sign in to comment.