Skip to content

Commit b2001ca

Browse files
authored
Update nodejs.yml
1 parent 014b01b commit b2001ca

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.github/workflows/nodejs.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,33 @@ jobs:
4242
# - name: reset git
4343
# run: git reset --hard
4444

45-
- name: Deploy with Password
46-
uses: wlixcc/SFTP-Deploy-Action@v1.2.6
47-
with:
48-
username: ${{ secrets.FTP_USERNAME }}
49-
server: ${{ secrets.FTP_SERVER }}
50-
port: ${{ secrets.FTP_PORT }}
51-
local_path: './docs/.vuepress/dist/*'
52-
remote_path: '/upload'
53-
sftp_only: true
54-
password: ${{ secrets.FTP_PASSWORD }}
55-
rsyncArgs: '--exclude=node_modules --exclude=.git --exclude=*.log'
56-
sftpArgs: '-o ConnectTimeout=5'
57-
58-
# - name: 📂 Sync files
59-
# uses: SamKirkland/FTP-Deploy-Action@v4.3.5
45+
# - name: Deploy with Password
46+
# uses: wlixcc/SFTP-Deploy-Action@v1.2.6
6047
# with:
61-
# server: ${{ secrets.FTP_IP }}
6248
# username: ${{ secrets.FTP_USERNAME }}
49+
# server: ${{ secrets.FTP_SERVER }}
50+
# port: ${{ secrets.FTP_PORT }}
51+
# local_path: './docs/.vuepress/dist/*'
52+
# remote_path: '/upload'
53+
# sftp_only: true
6354
# password: ${{ secrets.FTP_PASSWORD }}
64-
# local-dir: docs/.vuepress/dist/ # 选择哪些文件要部署到服务器,这个选项在这里选了之后,要在.git-ftp-include中添加相应的路径
65-
# server-dir: /
55+
# rsyncArgs: '--exclude=node_modules --exclude=.git --exclude=*.log'
56+
# sftpArgs: '-o ConnectTimeout=5'
57+
58+
- name: 📂 Sync files
59+
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
60+
with:
61+
server: ${{ secrets.FTP_IP }}
62+
username: ${{ secrets.FTP_USERNAME }}
63+
password: ${{ secrets.FTP_PASSWORD }}
64+
local-dir: docs/.vuepress/dist/ # 选择哪些文件要部署到服务器,这个选项在这里选了之后,要在.git-ftp-include中添加相应的路径
65+
server-dir: /
6666

67-
# ftp-server: sftp://${{ secrets.FTP_IP }}/home/www/htdocs # 服务器地址和端口(可以填域名,不过我服务器做了全站加速会导向加速结点的IP,所以只能用服务器的IP)
68-
# ftp-username: ${{ secrets.FTP_USERNAME }} # FTP用户名
69-
# ftp-password: ${{ secrets.FTP_PASSWORD }} # FTP密码
70-
# git-ftp-args: --insecure # (如果是FTP连接的话--insecure不用加)
71-
# local-dir: docs/.vuepress/dist/ # 选择哪些文件要部署到服务器,这个选项在这里选了之后,要在.git-ftp-include中添加相应的路径
67+
ftp-server: sftp://${{ secrets.FTP_IP }}/home/www/htdocs # 服务器地址和端口(可以填域名,不过我服务器做了全站加速会导向加速结点的IP,所以只能用服务器的IP)
68+
ftp-username: ${{ secrets.FTP_USERNAME }} # FTP用户名
69+
ftp-password: ${{ secrets.FTP_PASSWORD }} # FTP密码
70+
git-ftp-args: --insecure # (如果是FTP连接的话--insecure不用加)
71+
local-dir: docs/.vuepress/dist/ # 选择哪些文件要部署到服务器,这个选项在这里选了之后,要在.git-ftp-include中添加相应的路径
7272

7373
- name: upload-artifact
7474
uses: actions/upload-artifact@v4 #共享或保存action过程中产生的文件

0 commit comments

Comments
 (0)