From 5dafd75b6e48d4d067615c946e1d914b2d3f5ccb Mon Sep 17 00:00:00 2001 From: Daniel Czerwonk Date: Tue, 22 Nov 2022 17:42:29 +0100 Subject: [PATCH] update goreleaser github action --- .github/workflows/release.yml | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c672827..41aadd0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,37 +1,25 @@ -name: Release - on: push: tags: - '*.*.*' +name: Release jobs: goreleaser: name: Create Release runs-on: ubuntu-latest - env: - GO_VERSION: "1.19" steps: - name: Checkout code uses: actions/checkout@v2 - - name: Set up Go ${{ env.GO_VERSION }} + - name: Set up Go uses: actions/setup-go@v2 with: - go-version: ${{ env.GO_VERSION }} - - - name: Cache Go modules - uses: actions/cache@v2 - with: - path: | - ~/go/pkg/mod # Module download cache - ~/.cache/go-build # Build cache (Linux) - key: ${{ runner.os }}-${{ env.GO_VERSION }}-go-${{ hashFiles('**/go.sum') }} - restore-keys: ${{ runner.os }}-${{ env.GO_VERSION }}-go- + go-version: 1.19 - name: Run GoReleaser uses: goreleaser/goreleaser-action@v2 with: args: release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file