From e1f4df0b3c45af7a35f6a700ffa59c858e332efe Mon Sep 17 00:00:00 2001 From: silenceper Date: Sun, 24 Sep 2023 20:02:56 +0800 Subject: [PATCH] goreleaser: use go 1.20 --- .github/workflows/goreleaser.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/goreleaser.yml b/.github/workflows/goreleaser.yml index 5ca24fb..d09e75d 100644 --- a/.github/workflows/goreleaser.yml +++ b/.github/workflows/goreleaser.yml @@ -8,19 +8,18 @@ on: jobs: goreleaser: runs-on: ubuntu-latest + strategy: + matrix: + go-version: [ '1.20' ] + steps: - - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - - name: Set up Go - uses: actions/setup-go@v2 + - name: Setup Golang ${{ matrix.go-version }} + uses: actions/setup-go@v4 with: - go-version: 1.20 - - - name: Run GoReleaser + go-version: ${{ matrix.go-version }} + - name: Checkout + uses: actions/checkout@v3 + - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: version: latest