Skip to content

Commit

Permalink
🎈 ci: 测试Release
Browse files Browse the repository at this point in the history
  • Loading branch information
HeartfeltJoy committed Sep 29, 2024
1 parent c89d34a commit c00aa76
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,31 @@ jobs:
with:
name: NapCat-Desktop
path: ./build/NapCat-Desktop.exe


release:
needs: build
runs-on: ubuntu-latest
steps:
- name: "检出代码"
uses: actions/checkout@v2

- name: "下载工件"
uses: actions/download-artifact@v3
with:
name: NapCat-Desktop

- name: "设置 body 内容"
id: get_body
run: echo "::set-output name=body::$(cat docs/CHANGELOG.md)"

- name: "创建发布草案"
id: create_release
uses: softprops/action-gh-release@v1
with:
files: "./NapCat-Desktop.exe"
draft: true
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
name: "NapCat Release ${{ github.ref }}"
body: ${{ steps.get_body.outputs.body }}

0 comments on commit c00aa76

Please sign in to comment.