Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
samluiz authored Feb 29, 2024
1 parent 1baf54b commit be33465
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: goreleaser

on:
push:
tags:
- "*"

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout
with:
fetch-depth: 0
- name: Set up Go
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GIT_TAG: $GITHUB_REF_NAME
GO_VERSION: ${{ steps.go-version.outputs.minimal }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 comments on commit be33465

Please sign in to comment.