lets try goreleaser

This commit is contained in:
Grant Limberg
2023-09-06 16:14:10 -07:00
parent 6a04e1b616
commit 0304dbbb2f
3 changed files with 59 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
name: goreleaser
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v4
with:
go-version: stable
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
- uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro':
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+2
View File
@@ -0,0 +1,2 @@
dist/
+26
View File
@@ -0,0 +1,26 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
release:
github:
owner: zerotier
name: ztchooks
draft: true
replace_existing_draft: true
target_commitish: "{{ .Commit }}"
# tag: "{{ .CurrentTag }}"
prerelease: auto
make_latest: true
mode: append
skip_upload: true
# The lines beneath this are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj