Skip to content

Commit 6d23571

Browse files
ci: Add PR test for running goreleaser snapshot (#218)
1 parent 4cc10d8 commit 6d23571

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: .github/workflows/goreleaser-snapshot.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This is used to test changes to goreleaser-related files.
2+
# It should never publish. Publishing should be handled in the `tag.yml` action
3+
name: Goreleaser snapshot
4+
5+
on:
6+
pull_request:
7+
paths:
8+
- .goreleaser.yml
9+
- build/Dockerfile
10+
- .github/workflows/goreleaser-snapshot.yml
11+
12+
jobs:
13+
goreleaser:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
21+
- name: Setup Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: 1.17
25+
26+
- name: Create snapshot
27+
uses: goreleaser/goreleaser-action@v2
28+
with:
29+
version: latest
30+
args: release --snapshot --rm-dist

0 commit comments

Comments
 (0)