Skip to content

Commit 4b7f089

Browse files
committed
尝试其其他ftp
1 parent 17a1bae commit 4b7f089

1 file changed

Lines changed: 20 additions & 20 deletions

File tree

.github/workflows/hexo-build.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)