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