Skip to content

Commit

Permalink
ci: setup gh action for releases (on tags)
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido committed May 20, 2024
1 parent 50e340f commit 9e1885b
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: releasing

on:
push:
tags:
- "v*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:

- name: Check out the source code
uses: actions/checkout@v4
with:
fetch-depth: 0 # Avoid running against a shallow clone

- name: Force fetch upstream tags
run: git fetch --force --tags

- name: Set up Go 1.22
uses: actions/setup-go@v5
with:
go-version: 1.22
check-latest: true

- name: Release
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9e1885b

Please sign in to comment.