From 13dc45aab350d5de0283232d2f7e59bcbc83c1ec Mon Sep 17 00:00:00 2001 From: Marko Man Date: Tue, 4 Oct 2022 01:44:49 +0200 Subject: [PATCH] [skip ci] actions: add goreleaser --- .github/workflows/goreleaser.yml | 34 ++++++++++++++++++++++++++++++++ .goreleaser.yml | 8 ++++++++ 2 files changed, 42 insertions(+) create mode 100644 .github/workflows/goreleaser.yml create mode 100644 .goreleaser.yml diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml new file mode 100644 index 0000000..dcd99bb --- /dev/null +++ b/.github/workflows/goreleaser.yml @@ -0,0 +1,34 @@ +name: goreleaser + +on: + create: + tags: + - '*' + push: + tags: + - '*' + +jobs: + goreleaser: + runs-on: ubuntu-latest + steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - + name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: 1.19 + - + name: Run GoReleaser + uses: goreleaser/goreleaser-action@v3 + with: + # either 'goreleaser' (default) or 'goreleaser-pro' + distribution: goreleaser + version: latest + args: release --rm-dist + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..66fb163 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,8 @@ +builds: + - + goos: + - freebsd + - windows + - linux + - darwin + - openbsd