From 0304dbbb2f84eda9cc1854d6a666cab2bdf3b300 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 6 Sep 2023 16:13:26 -0700 Subject: [PATCH] lets try goreleaser --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ .gitignore | 2 ++ .goreleaser.yaml | 26 ++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 .github/workflows/release.yml create mode 100644 .gitignore create mode 100644 .goreleaser.yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e44c232 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cde0123 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ + +dist/ diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..ac16705 --- /dev/null +++ b/.goreleaser.yaml @@ -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