Update upy.yml

This commit is contained in:
小赵同学 authored and GitHub committed 2024-07-28 11:22:00 +08:00
1 parent 196f6cef38
commit 51badcc815
1 file changed
+6 -5
+6 -5
View File
@@ -23,15 +23,16 @@ jobs:
else
echo "Password is set"
fi
- name: Install upx-cli
- name: Download upx-cli
run: |
curl -s https://packagecloud.io/install/repositories/upyun/upx/script.deb.sh | sudo bash
sudo apt-get install upx
curl -L https://github.com/upyun/upx/releases/download/v0.2.4/upx-v0.2.4-linux-amd64.tar.gz -o upx.tar.gz
tar -xzvf upx.tar.gz
sudo mv upx /usr/local/bin/
- name: Delete files in UpYun bucket
run: |
upx rm -r /${{ secrets.UPYUN_BUCKET }}/ --user ${{ secrets.UPYUN_OPERATOR }} --password ${{ secrets.UPYUN_PASSWORD }}
/usr/local/bin/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