Skip to content

Commit

Permalink
build: publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Feb 9, 2025
1 parent 7b325c5 commit 7c13b1a
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: publish

on:
push:
tags:
- "*"
workflow_dispatch:

permissions:
contents: write

jobs:
publish:
name: Release and publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: "go.mod"

- name: Install dependencies
run: go get .

- name: Release and publish
uses: goreleaser/goreleaser-action@v6
with:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7c13b1a

Please sign in to comment.