From e0514d0514299f558a119ce6e9c4dee10f6c67ea Mon Sep 17 00:00:00 2001 From: appleboy Date: Mon, 12 Feb 2024 12:57:35 +0800 Subject: [PATCH] chore: refine CI/CD pipeline and update Go version - Standardize quote usage for tag patterns in goreleaser.yml - Remove unnecessary line breaks in the Checkout and Set up Go steps - Update Go version specification to use caret range notation - Consolidate Run GoReleaser step without altering functionality Signed-off-by: appleboy --- .github/workflows/goreleaser.yml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 1f2c744..98e3a69 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -3,7 +3,7 @@ name: Goreleaser on: push: tags: - - '*' + - "*" permissions: contents: write @@ -12,18 +12,15 @@ jobs: goreleaser: runs-on: ubuntu-latest steps: - - - name: Checkout + - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 - - - name: Set up Go + - name: Set up Go uses: actions/setup-go@v5 with: - go-version: 1.17 - - - name: Run GoReleaser + go-version: "^1" + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: # either 'goreleaser' (default) or 'goreleaser-pro'