Skip to content

Commit

Permalink
feat: auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
邓嘉文 committed Sep 13, 2023
1 parent 6ebf52a commit 657f544
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/go-binary-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Auto Release

on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
# either 'goreleaser' (default) or 'goreleaser-pro'
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Binary file removed release/gitbook-summary
Binary file not shown.
Binary file removed release/gitbook-summary.darwin
Binary file not shown.
Binary file removed release/gitbook-summary.exe
Binary file not shown.

0 comments on commit 657f544

Please sign in to comment.