Skip to content

Commit

Permalink
test releases (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
abice authored Mar 26, 2023
1 parent c76d0d6 commit 97611fd
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 15 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,9 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20

- name: Cache Go modules
uses: actions/cache@v3
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
go-version: ">=1.20.2"
- name: Ensure Go
run: go version

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/release_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: goreleaser

on:
push: {}

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: ">=1.20.2"
- name: Ensure Go
run: go version

- name: Install GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
install-only: true
- name: Show GoReleaser version
run: goreleaser -v

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --clean --snapshot
6 changes: 0 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./generator
builds:
- env:
- CGO_ENABLED=0
Expand Down

0 comments on commit 97611fd

Please sign in to comment.