-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update Signed-off-by: ysicing <[email protected]>
- Loading branch information
Showing
5 changed files
with
70 additions
and
75 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,8 +9,7 @@ env: | |
TZ: Asia/Shanghai | ||
GO_VERSION: '1.20' | ||
|
||
permissions: | ||
contents: write | ||
permissions: write-all | ||
|
||
jobs: | ||
release: | ||
|
@@ -23,6 +22,14 @@ jobs: | |
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: install task | ||
run: | | ||
echo "install task" | ||
go install github.com/go-task/task/v3/cmd/task@latest | ||
- name: install upx | ||
uses: crazy-max/ghaction-upx@v2 | ||
with: | ||
install-only: true | ||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v4 | ||
with: | ||
|
@@ -52,3 +59,47 @@ jobs: | |
curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/ | ||
curl -F package=@$filename https://${FURY_TOKEN}@push.fury.io/qucheng/ | ||
done | ||
Changelog: | ||
name: "Changelog" | ||
needs: release | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
fetch-depth: 0 | ||
- name: Setup Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version: ${{ env.GO_VERSION }} | ||
- name: install task | ||
run: | | ||
echo "install task" | ||
go install github.com/go-task/task/v3/cmd/task@latest | ||
- name: Build docs | ||
run: | | ||
task godoc | ||
- name: Publish docs | ||
uses: peaceiris/actions-gh-pages@v3 | ||
with: | ||
github_token: ${{ secrets.GH_TOKEN }} | ||
publish_dir: ./docs | ||
- run: git fetch --prune --prune-tags | ||
- run: git tag -l 'v*' | ||
- run: ./hack/scripts/changelog.sh > CHANGELOG.md | ||
- name: fetch current version | ||
id: get-current-tag | ||
uses: actions-ecosystem/[email protected] | ||
- uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: 'docs: updated CHANGELOG.md & docs for ${{steps.get-current-tag.outputs.tag }}' | ||
commit-message: | | ||
docs: updated CHANGELOG.md & docs | ||
🤖 add release changelog using rebot. | ||
branch: create-pull-request/changelog-${{steps.get-current-tag.outputs.tag }} | ||
delete-branch: true | ||
labels: | | ||
kind/doc | ||
kind/bot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters