Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
SuperNG6 committed Dec 6, 2020
1 parent d74eb27 commit fd82857
Showing 2 changed files with 39 additions and 1 deletion.
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:
38 changes: 38 additions & 0 deletions .github/workflows/Manual Upload Release.yml
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

0 comments on commit fd82857

Please sign in to comment.