-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
39 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
.github/workflows/Upload Release.yml → .github/workflows/Auto Upload Release.yml
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,4 +1,4 @@ | ||
name: Upload files to release | ||
name: Auto Upload files to release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Manual Upload files to release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
buildx: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# 获得仓库中的ReleaseTag | ||
- name: Set Version | ||
id: set-version | ||
run: | | ||
echo "::set-output name=version::$(cat ReleaseTag | head -n1)" | ||
echo "ReleaseTag=$(cat ReleaseTag | head -n1)" | ||
- name: Dowload files | ||
run: | | ||
mkdir ./qbittorrent | ||
cd ./qbittorrent | ||
wget -q https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases/download/release-${{ steps.set-version.outputs.version }}/qbittorrent-nox_aarch64-linux-musl_static.zip | ||
wget -q https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases/download/release-${{ steps.set-version.outputs.version }}/qbittorrent-nox_arm-linux-musleabi_static.zip | ||
wget -q https://github.com/c0re100/qBittorrent-Enhanced-Edition/releases/download/release-${{ steps.set-version.outputs.version }}/qbittorrent-nox_linux_x64_static.zip | ||
- name: Upload files to release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
name: qBittorrent Enhanced Edition v${{ steps.set-version.outputs.version }} | ||
tag_name: ${{ steps.set-version.outputs.version }} | ||
# body_path: Changelog | ||
files: | | ||
./qbittorrent/*.zip |