Skip to content

Commit

Permalink
add release dry-run
Browse files Browse the repository at this point in the history
Signed-off-by: kouki <kouworld0123@gmail.com>
  • Loading branch information
kmdkuk committed Nov 19, 2023
1 parent 7d565f4 commit fed7731
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ jobs:
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
15 changes: 15 additions & 0 deletions .github/workflows/test_and_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,21 @@ jobs:
run: go mod tidy && git diff -s --exit-code go.sum
- name: test
run: make test
release-dry-run:
runs-on: ubuntu-latest
needs: prepare
steps:
- name: checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: 1.21
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: --snapshot --skip-publish --clean
notification:
runs-on: ubuntu-latest
needs: test
Expand Down

0 comments on commit fed7731

Please sign in to comment.