Skip to content

Commit

Permalink
CI: Add goreleaser and github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
rootsami committed Dec 6, 2024
1 parent 66d10f9 commit b41b416
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: 1.22
cache: true
- uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref_name }}
12 changes: 12 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
project_name: ratkiez
builds:
- id: ratkiez
main: ./cmd/ratkiez
binary: ratkiez
env: [CGO_ENABLED=0]
goos:
- linux
- darwin
goarch:
- amd64
- arm64

0 comments on commit b41b416

Please sign in to comment.