From f657ce970643f8fea3c6ff12515fd45b64372549 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Mon, 6 May 2024 17:37:58 -0700 Subject: [PATCH] Update release action --- .github/workflows/autorelease.yml | 35 ++++++++++++++----------------- 1 file changed, 16 insertions(+), 19 deletions(-) diff --git a/.github/workflows/autorelease.yml b/.github/workflows/autorelease.yml index 243b9e1..41077e8 100644 --- a/.github/workflows/autorelease.yml +++ b/.github/workflows/autorelease.yml @@ -3,32 +3,29 @@ name: Release on: push: tags: ["v[0-9]+.[0-9]+.[0-9]+"] - branches: [master] + branches: [main] jobs: - tagged-release: - name: "Tagged Release" if: startsWith( github.ref, 'refs/tags/v') runs-on: ubuntu-latest timeout-minutes: 45 steps: - - - name: Go 1.18 - uses: actions/setup-go@v2 - with: - go-version: '^1.18' - - - name: Make - run: | - make release + - name: Go 1.22 + uses: actions/setup-go@v2 + with: + go-version: "^1.22" + + - name: Make + run: | + make release - - name: "Publish Release" - uses: "marvinpinto/action-automatic-releases@latest" - with: - repo_token: "${{ secrets.GITHUB_TOKEN }}" - prerelease: true - files: | - ./release/* + - name: "Publish Release" + uses: "marvinpinto/action-automatic-releases@latest" + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + prerelease: true + files: | + ./release/*