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 85ef488
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 1,365 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/update-mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,24 +104,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 85ef488

Please sign in to comment.