Skip to content

Commit

Permalink
feat: remove upload to aliyundrive
Browse files Browse the repository at this point in the history
Signed-off-by: Tianling Shen <[email protected]>
  • Loading branch information
1715173329 committed May 26, 2022
1 parent ca07e0e commit fe0be6f
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 1,366 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/update-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jobs:
run: |
sudo -E apt-get -qq update
sudo -E apt-get -qq install build-essential libncurses5-dev binutils bzip2 coreutils gawk gettext git patch zlib1g-dev subversion git-core gcc g++ p7zip-full libssl-dev autoconf automake libtool autopoint curl wget vim nano python3 python3-pip xz-utils tar unzip rsync
sudo -E -H pip3 install -r aliyundrive-uploader/requirements.txt
sudo -E apt-get -qq clean
- name: Checkout ImmortalWrt Source Tree on Branch ${{ matrix.branch }}
Expand Down Expand Up @@ -104,24 +103,6 @@ jobs:
[ -d "uploader-keys" ] || mkdir -p "uploader-keys"
cp -f "$UPLOADER_CONF" "uploader-keys/$UPLOADER_TYPE.json"
- name: Upload Files to AliyunDrive
env:
UPLOADER_TYPE: "alidrive"
ALI_DRIVE_ID: ${{ secrets.ALI_DRIVE_ID }}
ALI_REFRESH_TOKEN: ${{ secrets.ALI_REFRESH_TOKEN }}
run: |
./uploader-cache/detect-upload-files.sh
[ "$(ls -A "package-sources"/* | wc -l)" -gt "0" ] || exit 0
pushd aliyundrive-uploader
[ -f "../uploader-keys/$UPLOADER_TYPE.json" ] && cp -f "../uploader-keys/$UPLOADER_TYPE.json" "config.json" || ./gen-alidriveconf.sh
[ -f "../uploader-keys/$UPLOADER_TYPE.db" ] && cp -f "../uploader-keys/$UPLOADER_TYPE.db" "db.db"
python3 main.py || echo "Never mind."
popd
./uploader-cache/gen-downloaded-hash.sh
[ -d "uploader-keys" ] || mkdir -p "uploader-keys"
cp -f "aliyundrive-uploader/config.json" "uploader-keys/$UPLOADER_TYPE.json"
cp -f "aliyundrive-uploader/db.db" "uploader-keys/$UPLOADER_TYPE.db"
cleanup-workflow-runs:
runs-on: ubuntu-18.04
needs: update-mirror
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
## Reference
[SuLingGG/OpenWrt-Mini/update-immortalwrt-1806-dl-mirror.yml](https://github.com/SuLingGG/OpenWrt-Mini/blob/381524b297bc346c3afbf779eef8601ffe6c469f/.github/workflows/update-immortalwrt-1806-dl-mirror.yml).<br/>
[MoeClub/OneList/OneDriveUploader](https://github.com/MoeClub/OneList/tree/206b44d9a129d383211806f02a600a96893e2445/OneDriveUploader).<br/>
[Hidove/aliyundrive-uploader](https://github.com/Hidove/aliyundrive-uploader/tree/d16b104bc924b390c82789338dd9f60e7ed994ba).
[MoeClub/OneList/OneDriveUploader](https://github.com/MoeClub/OneList/tree/206b44d9a129d383211806f02a600a96893e2445/OneDriveUploader).
345 changes: 0 additions & 345 deletions aliyundrive-uploader/AliyunDrive.py

This file was deleted.

Loading

0 comments on commit fe0be6f

Please sign in to comment.