From e68deb53dd81c2f109ad48f211ef20d104216e4e Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Sat, 30 Apr 2022 23:05:41 +0100 Subject: [PATCH] Add goreleaser --- .github/workflows/main.yml | 17 ++++++++++++++++- .goreleaser.yml | 5 +++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 .goreleaser.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c3bdca..e40586c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,7 +9,7 @@ on: - master pull_request: permissions: - contents: read + contents: write pull-requests: read jobs: build: @@ -46,3 +46,18 @@ jobs: - uses: shogo82148/actions-goveralls@v1 with: parallel-finished: true + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v3 + with: + go-version: '1.18' + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v2.6.1 + with: + 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..8c37d5d --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,5 @@ +--- +builds: + - skip: true +release: + prerelease: auto