-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #693 from RayWangQvQ/develop
Release 2.0.4
- Loading branch information
Showing
48 changed files
with
1,451 additions
and
1,083 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
name: No Response | ||
|
||
name: Close Stale Issues | ||
on: | ||
# workflow_dispatch: | ||
issue_comment: | ||
types: [created] | ||
schedule: | ||
- cron: '7 4,10 * * *' | ||
- cron: "0 8 * * *" # 每天的 00:00 运行 | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
noResponse: | ||
close_stale_issues: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: lee-dohm/[email protected] | ||
- name: Close Stale Issues | ||
uses: actions/stale@v5 | ||
with: | ||
token: ${{ github.token }} | ||
# closeComment: This issue has been automatically closed due to no response from the original author. Please feel free to reopen it if you have more information that can help us investigate the issue further. | ||
daysUntilClose: 3 | ||
responseRequiredLabel: needs-more-info | ||
days-before-stale: 3 # 3 天不活跃后标记Stale | ||
days-before-close: 3 # 标记Stale后3天不活跃则关闭问题 | ||
stale-issue-label: "Stale" # 标记为 "Stale" 的问题 | ||
stale-issue-message: "🕸️ This has been inactive for 3 days, please confirm if it still needs attention~~" # Comment added | ||
close-issue-message: "🚫 This has been inactive for too long and is now closed, feel free to reopen it if needed!" # Comment added | ||
only-labels: "needs-more-info" # 只处理标签为 "help wanted" 的问题 | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -1,62 +1,48 @@ | ||
# 打包发布Release | ||
|
||
name: Publish release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: '版本号' | ||
required: true | ||
|
||
permissions: | ||
contents: write | ||
discussions: write | ||
|
||
jobs: | ||
build: | ||
name: publish relesae | ||
name: Publish Release | ||
if: ${{ github.repository == 'RayWangQvQ/BiliBiliToolPro' }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.inputs.version }} | ||
|
||
- name: Setup .NET | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 6.0.x | ||
dotnet-version: '6.0.x' | ||
|
||
- name: Publish and zip | ||
- name: Publish and Zip Release | ||
run: | | ||
pwd && ls | ||
cd ./scripts | ||
chmod +x ./publish.sh | ||
. publish.sh --runtime all | ||
./publish.sh --runtime all | ||
- name: Get release content | ||
id: release_content | ||
- name: Extract Release Notes | ||
id: release_notes | ||
run: | | ||
cd ${{ github.workspace }} | ||
pwd && ls | ||
content=$(tac ./CHANGELOG.md | grep -m1 "##" -B 1000 | tac) | ||
echo "Release content: $content" | ||
echo "release_content<<EOF" >> $GITHUB_OUTPUT | ||
echo "$content" >> $GITHUB_OUTPUT | ||
echo "EOF" >> $GITHUB_OUTPUT | ||
content=$(grep -m1 "##" -A 1000 ./CHANGELOG.md) | ||
echo "::set-output name=content::$content" | ||
- name: Upload release asset | ||
id: upload-release-asset | ||
- name: Create Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ./src/Ray.BiliBiliTool.Console/bin/Publish/*.zip | ||
files: './src/Ray.BiliBiliTool.Console/bin/Publish/*.zip' | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
name: BiliBiliToolPro-V${{ github.event.inputs.version }} | ||
name: "BiliBiliToolPro-V${{ github.event.inputs.version }}" | ||
tag_name: ${{ github.event.inputs.version }} | ||
body: ${{ steps.release_content.outputs.release_content }} | ||
body: ${{ steps.release_notes.outputs.content }} | ||
discussion_category_name: Announcements | ||
generate_release_notes: true | ||
fail_on_unmatched_files: true |
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
Oops, something went wrong.