From 71a567cde2f3ef6de316593418856a68ab23a1cc Mon Sep 17 00:00:00 2001 From: Andrej Benz Date: Sat, 2 Mar 2024 09:15:27 +0100 Subject: [PATCH] switching to goreleaser --- .github/workflows/release.yml | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c483e2..4f49ff5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,15 +1,29 @@ +name: goreleaser + on: release: types: [created] +permissions: + contents: write + jobs: - release-linux-amd64: - name: release linux/amd64 + goreleaser: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: wangyoucao577/go-release-action@v1.35 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: linux - goarch: amd64 + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: stable + - name: Run GoReleaser + uses: goreleaser/goreleaser-action@v5 + with: + distribution: goreleaser + version: latest + args: release --clean + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}