This repository has been archived by the owner on Jan 20, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update workflow and update 0.6.0
- Loading branch information
Showing
4 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
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 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 |
---|---|---|
|
@@ -2,7 +2,7 @@ on: | |
release: | ||
types: | ||
- published | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
@@ -35,6 +35,8 @@ jobs: | |
bin/ | ||
update-release-notes: | ||
outputs: | ||
release_notes: ${{ steps.extract-release-notes.outputs.release_notes }} | ||
permissions: | ||
contents: write | ||
runs-on: ubuntu-latest | ||
|
@@ -75,3 +77,35 @@ jobs: | |
with: | ||
files: | | ||
${{ github.event.repository.name }}-windows-x64.zip | ||
upload-to-minebbs: | ||
needs: | ||
- build | ||
- update-release-notes | ||
runs-on: ubuntu-latest | ||
steps: | ||
# 检出代码 | ||
- uses: actions/checkout@v4 | ||
|
||
# 下载构建产物 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ github.event.repository.name }}-windows-x64-${{ github.sha }} | ||
path: artifact | ||
|
||
# 复制文件 | ||
- run: | | ||
cp CHANGELOG.md LICENSE README.md artifact/ | ||
# 重新打包 | ||
- run: | | ||
zip -r ../${{ github.event.repository.name }}-windows-x64.zip * | ||
working-directory: artifact | ||
- name: Upload to MineBBS | ||
uses: engsr6982/[email protected] | ||
with: | ||
minebbs_token: ${{ secrets.MINEBBS_TOKEN }} | ||
resource_id: "4836" | ||
upload_file: ${{ github.event.repository.name }}-windows-x64.zip | ||
update_description: ${{ needs.update-release-notes.outputs.release_notes }} # 使用 update-release-notes 步骤的输出 |
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 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