Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Commit

Permalink
releaser
Browse files Browse the repository at this point in the history
  • Loading branch information
wim-web committed Mar 25, 2023
1 parent ec93f4b commit 678518e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"

permissions:
contents: write

jobs:
release:
name: Release Go Binary
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.1.0
- uses: aquaproj/aqua-installer@v1.1.2
with:
aqua_version: v1.25.2
- uses: goreleaser/goreleaser-action@v3.2.0
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
project_name: tonneeeeel
archives:
- name_template: "{{.ProjectName}}_{{.Os}}_{{.Arch}}"
before:
hooks:
- go mod tidy
builds:
- binary: tonneeeeel
main: main.go
goos:
- darwin
- linux
goarch:
- amd64
- arm64

0 comments on commit 678518e

Please sign in to comment.