mirror of
https://github.com/Wanxp/obsidian-douban.git
synced 2026-04-04 08:38:41 +08:00
enhance 增加提交发布功能
This commit is contained in:
parent
208e0d2061
commit
20b6daf10e
@ -1,4 +1,5 @@
|
|||||||
name: Release
|
|
||||||
|
name: Release Draft
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -37,11 +38,16 @@ jobs:
|
|||||||
id: extract_version
|
id: extract_version
|
||||||
run: echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
|
run: echo "VERSION=$(jq -r '.version' package.json)" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Set Git user
|
||||||
|
run: |
|
||||||
|
git config --global user.name "github-actions[bot]"
|
||||||
|
git config --global user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
- name: Create tag
|
- name: Create tag
|
||||||
run: git tag -a "v${{ env.VERSION }}" -m "Release version ${{ env.VERSION }}"
|
run: git tag -a "${{ env.VERSION }}" -m "Release version ${{ env.VERSION }}"
|
||||||
|
|
||||||
- name: Push tag
|
- name: Push tag
|
||||||
run: git push origin "v${{ env.VERSION }}"
|
run: git push origin "${{ env.VERSION }}"
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
id: create_release
|
id: create_release
|
||||||
@ -51,8 +57,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
tag_name: "v${{ env.VERSION }}"
|
tag_name: "v${{ env.VERSION }}"
|
||||||
release_name: "${{ env.VERSION }}"
|
release_name: "${{ env.VERSION }}"
|
||||||
draft: false
|
draft: true
|
||||||
prerelease: true
|
prerelease: false
|
||||||
body: ${{ github.event.head_commit.message }}
|
body: ${{ github.event.head_commit.message }}
|
||||||
|
|
||||||
- name: Upload release assets
|
- name: Upload release assets
|
||||||
Loading…
Reference in New Issue
Block a user