This commit is contained in:
Vaica committed 2026-06-25 13:32:44 +08:00
1 parent ed9b19adba
commit a01312d104
2 files changed
+112 -7

No files matched your search

+13 -7
View File
@@ -516,15 +516,21 @@ jobs:
id: start-upyun-upload
run: echo "start_time=$(date +%s)" >> $GITHUB_OUTPUT
- name: Checkout code (for scripts)
if: steps.check.outputs.deployed == 'true'
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Deploy to UpYun
if: steps.check.outputs.deployed == 'true'
uses: her-cat/upyun-deployer@v1.0.4
with:
bucket: ${{ secrets.UPYUN_BUCKET }}
operator: ${{ secrets.UPYUN_OPERATOR }}
password: ${{ secrets.UPYUN_PASSWORD }}
dir: 'public'
publish_dir: '/'
env:
UPYUN_SERVICE: ${{ secrets.UPYUN_BUCKET }}
UPYUN_OPERATOR: ${{ secrets.UPYUN_OPERATOR }}
UPYUN_PASSWORD: ${{ secrets.UPYUN_PASSWORD }}
run: |
chmod +x scripts/deploy_upyun.sh
./scripts/deploy_upyun.sh ./public / 20
- name: Save deploy hash
if: steps.check.outputs.deployed == 'true'