Skip to content

Commit

Permalink
update goreleaser github action
Browse files Browse the repository at this point in the history
  • Loading branch information
czerwonk committed Nov 22, 2022
1 parent 736c287 commit 5dafd75
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 5dafd75

Please sign in to comment.