Update upy.yml

This commit is contained in:
小赵同学 authored and GitHub committed 2024-07-28 11:20:04 +08:00
1 parent b116f218ee
commit 7e777f2e1a
1 file changed
+10 -1
+10 -1
View File
@@ -23,6 +23,15 @@ jobs:
else
echo "Password is set"
fi
- name: Install upx-cli
run: |
curl -s https://packagecloud.io/install/repositories/upyun/upx/script.deb.sh | sudo bash
sudo apt-get install upx
- name: Delete files in UpYun bucket
run: |
upx rm -r /${{ secrets.UPYUN_BUCKET }}/ --user ${{ secrets.UPYUN_OPERATOR }} --password ${{ secrets.UPYUN_PASSWORD }}
- name: Deploy to UpYun
uses: her-cat/upyun-deployer@v1.0.3
@@ -31,4 +40,4 @@ jobs:
operator: ${{ secrets.UPYUN_OPERATOR }}
password: ${{ secrets.UPYUN_PASSWORD }}
dir: 'public' # 确认这个目录是您的构建输出目录
publish_dir: '/'
publish_dir: '/' # 确认这个是您想要刷新的目录