File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,25 +56,25 @@ jobs:
5656 # 推送到远程 HTML 分支
5757 git push origin gh-pages --force
5858
59- # - name: Deploy to FTP Server
60- # uses: SamKirkland/FTP-Deploy-Action@v4.3.4
61- # with:
62- # server: ${{ secrets.FTP_HOST }} # FTP 服务器地址
63- # username: ${{ secrets.FTP_USERNAME }} # FTP 用户名
64- # password: ${{ secrets.FTP_PASSWORD }} # FTP 密码
65- # local-dir: ./
66- # server-dir: /wwwroot/
67- # dangerous-clean-slate: true # 清空服务器目录
68-
6959 - name : Deploy to FTP Server
70- run : |
71- ftp -n ${{ secrets.FTP_HOST }} <<END_SCRIPT
72- quote USER ${{ secrets.FTP_USERNAME }}
73- quote PASS ${{ secrets.FTP_PASSWORD }}
74- binary
75- cd /wwwroot/
76- del *
77- mput *
78- quit
79- END_SCRIPT
60+ uses : SamKirkland/FTP-Deploy-Action
61+ with :
62+ server : ${{ secrets.FTP_HOST }} # FTP 服务器地址
63+ username : ${{ secrets.FTP_USERNAME }} # FTP 用户名
64+ password : ${{ secrets.FTP_PASSWORD }} # FTP 密码
65+ local-dir : ./
66+ server-dir : /wwwroot/
67+ dangerous-clean-slate : true # 清空服务器目录
68+
69+ # - name: Deploy to FTP Server
70+ # run: |
71+ # ftp -n ${{ secrets.FTP_HOST }} <<END_SCRIPT
72+ # quote USER ${{ secrets.FTP_USERNAME }}
73+ # quote PASS ${{ secrets.FTP_PASSWORD }}
74+ # binary
75+ # cd /wwwroot/
76+ # del *
77+ # mput *
78+ # quit
79+ # END_SCRIPT
8080
You can’t perform that action at this time.
0 commit comments