diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ce8e570 --- /dev/null +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..8cb142a --- /dev/null +++ b/.goreleaser.yaml @@ -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