@
cai314494687 格式可能会乱,凑合着看吧
另外 Github CI 是真香-_-
上传
- name: Update
env:
UPYUN_KEY: ${{ secrets.UPYUN_KEY }}
run: |
.\upx-windows-amd64-v0.2.4.exe login xxx xxx ${{ secrets.UPYUN_KEY }}
.\upx-windows-amd64-v0.2.4.exe put .\dist\xxx.exe > Out-Null
下载
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Run Workflow
env:
SSH_DEPLOYMENT_KEY: ${{ secrets.SSH_DEPLOYMENT_KEY }}
id: write_file
uses: timheuer/base64-to-file@v1
with:
fileName: 'id.rsa'
encodedString: ${{ secrets.SSH_DEPLOYMENT_KEY }}
- name: Update
run: |
sudo chown 600 ${{ steps.write_file.outputs.filePath }}
ssh -vvv -o "StrictHostKeyChecking no" lg@$ip -p $port -i ${{ steps.write_file.outputs.filePath }} "cd /home/xxx && /xxx/upx-linux-amd64-v0.2.4 get xxx > /dev/null"