File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,16 @@ jobs:
1818 with :
1919 github_token : ${{ secrets.GITHUB_TOKEN }}
2020 publish_dir : ./build
21- - name : Deploy to mainland server
22- uses : webfactory/ssh-agent@v0.8 .0
21+ - name : Setup SSH
22+ uses : webfactory/ssh-agent@v0.9 .0
2323 with :
2424 ssh-private-key : ${{ secrets.SSH_PRIVATE_KEY }}
2525
26- - name : Add SSH host key and deploy
26+ - name : Deploy to server
2727 run : |
2828 mkdir -p ~/.ssh
29- ssh-keyscan -H ${{ secrets.IPv4 }} >> ~/.ssh/known_hosts
30- rsync -avz --exclude='.user.ini' ./build/ ${{ secrets.IP }}
31- continue-on-error : true
29+ ssh-keyscan -H ${{ secrets.IP }} >> ~/.ssh/known_hosts
30+ rsync -avz --exclude='.user.ini' ./build/ root@${{ secrets.IP }}:/www/wwwroot/jiangmiemie.com
31+ env :
32+ SSH_PRIVATE_KEY : ${{ secrets.SSH_PRIVATE_KEY }}
33+ SERVER_IP : ${{ secrets.IP }}
You can’t perform that action at this time.
0 commit comments