13.32
This commit is contained in:
1 parent
ed9b19adba
commit
a01312d104
2 files changed
+112
-7
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user