Skip to content

Commit

Permalink
ci: add releaser (#4)
Browse files Browse the repository at this point in the history
* ci: add goreleaser configuration

Signed-off-by: Luca Georges Francois <[email protected]>

* ci: add GitHub action configuration

Signed-off-by: Luca Georges Francois <[email protected]>

---------

Signed-off-by: Luca Georges Francois <[email protected]>
  • Loading branch information
0xpanoramix authored Oct 13, 2023
1 parent ac3cd20 commit d32f88e
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/releaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release

on:
push:
tags:
- 'v*'

permissions:
contents: write

jobs:
goreleaser:
name: "Go release"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: "Fetch all tags"
run: git fetch --force --tags

- name: "Set up Go"
uses: actions/setup-go@v4
with:
go-version: 1.20.x

- name: "Run GoReleaser"
uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 10 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
builds:
- skip: true

changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'

0 comments on commit d32f88e

Please sign in to comment.