mirror of
https://github.com/142vip/408CSFamily.git
synced 2026-11-06 15:21:35 +08:00
Merge pull request #39 from mmdapl/style/release-action
style: 修改ci提交格式
This commit is contained in:
23
.github/workflows/release.yml
vendored
23
.github/workflows/release.yml
vendored
@@ -35,25 +35,28 @@ jobs:
|
||||
### 打成压缩包
|
||||
- name: Create Zip Archive
|
||||
run: |
|
||||
zip -r 408CSFamily.zip .
|
||||
zip -r 408CSFamily.zip . \
|
||||
-x "node_modules"
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
uses: actions/create-release@latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
tag_name: ${{ github.ref }}
|
||||
release_name: Release ${{ github.ref }}
|
||||
body: |
|
||||
Release ${{ github.ref }}
|
||||
- Add feature A
|
||||
- Fix bug B
|
||||
draft: false
|
||||
prerelease: false
|
||||
release_name: ${{ github.ref }}
|
||||
# body: |
|
||||
# Release ${{ github.ref }}
|
||||
# - Add feature A
|
||||
# - Fix bug B
|
||||
body_path: CHANGELOG.md
|
||||
## 是否为草稿、是否为预发布
|
||||
draft: true
|
||||
prerelease: true
|
||||
|
||||
- name: Upload Assets
|
||||
uses: actions/upload-release-asset@v1
|
||||
uses: actions/upload-release-asset@latest
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
## 利用commit-and-tag-version生成changelog文档,并跳过commit、tag操作
|
||||
readonly generateChangeLog='pnpm commit-and-tag-version && git add CHANGELOG.md'
|
||||
## git提交信息
|
||||
readonly commitInfo='chore(release): publish v%s'
|
||||
readonly commitInfo='v%s'
|
||||
|
||||
|
||||
bumpp --preid alpha --execute="$generateChangeLog" --commit "$commitInfo" --all --tag --push
|
||||
Reference in New Issue
Block a user