From 8d4e4977e60518c7977f6abe00f07ccd80a2d897 Mon Sep 17 00:00:00 2001 From: Albert Le Batteux Date: Fri, 7 Apr 2023 11:12:37 +0100 Subject: [PATCH] fix(ci): goreleaser is working now (#3) * fix(ci): add GITHUB_TOKEN * chore(ci): add .goreleaser * fix(ci): add write permissions --- .github/workflows/release-binary.yml | 5 +++++ .goreleaser.yml | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 .goreleaser.yml diff --git a/.github/workflows/release-binary.yml b/.github/workflows/release-binary.yml index 0053d5b..568bddb 100644 --- a/.github/workflows/release-binary.yml +++ b/.github/workflows/release-binary.yml @@ -1,5 +1,8 @@ name: Release Binaries +permissions: + contents: write + on: release: types: [ published ] @@ -28,3 +31,5 @@ jobs: workdir: ${{ env.working-directory }} version: 1.13.0 args: release --rm-dist + env: + GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..13a6a57 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,9 @@ +project_name: supernova +builds: + - main: ./cmd + goos: + - linux + - darwin + goarch: + - amd64 + - arm64