Skip to content

Commit

Permalink
chore: github action for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
jozefcipa committed May 15, 2024
1 parent 920b65c commit fdf50e6
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
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: GoReleaser

on:
push:
tags:
- '*'

permissions:
contents: write

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:
distribution: goreleaser
version: '~> v1'
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
2 changes: 1 addition & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ brews:
name: homebrew-novus
git:
url: 'git@github.com:jozefcipa/homebrew-novus.git'
private_key: '{{ .Env.GITHUB_PRIVATE_KEY_PATH }}'
private_key: '{{ .Env.GH_PAT }}'
directory: .

# Setting this will prevent goreleaser to actually try to commit the updated
Expand Down

0 comments on commit fdf50e6

Please # to comment.