Files
koodo-reader/.github/workflows/upload.yml
troyeguo 9dbdb0d7ed fix bug
Former-commit-id: fbb3fb7bf3d635f47fc775a1c11a897ebb515317
2024-01-13 14:07:29 +08:00

22 lines
617 B
YAML

name: Download and Upload Release Files
on:
push:
paths:
- "src/upload.sh" # 指定要监视的文件路径
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run custom script
run: |
curl -O https://raw.githubusercontent.com/koodo-reader/koodo-reader/master/src/upload.sh
chmod +x ./upload.sh
./upload.sh ${{ secrets.B2_ACCOUNT_ID }} ${{ secrets.B2_APPLICATION_KEY }} ${{ secrets.R2_ACCOUNT_ID }} ${{ secrets.R2_APPLICATION_KEY }} ${{ secrets.R2_ENDPOINT }}
shell: bash