Skip to content

Commit dd6fcce

Browse files
committed
Switch from FTP to SFTP for deployment
- Changed from FTP-Deploy-Action to SFTP-Deploy-Action - Server only supports SFTP, not FTP - Uses same secrets (FTP_SERVER, FTP_USERNAME, FTP_PASSWORD) - Added sftp_only flag for security - Set delete_remote_files to false for safety
1 parent 556b902 commit dd6fcce

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to Web Server via FTP
1+
name: Deploy to Web Server via SFTP
22

33
on:
44
push:
@@ -13,15 +13,13 @@ jobs:
1313
- name: Checkout code
1414
uses: actions/checkout@v3
1515

16-
- name: Deploy to FTP server
17-
uses: SamKirkland/FTP-Deploy-Action@v4.3.4
16+
- name: Deploy to SFTP server
17+
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
1818
with:
1919
server: ${{ secrets.FTP_SERVER }}
2020
username: ${{ secrets.FTP_USERNAME }}
2121
password: ${{ secrets.FTP_PASSWORD }}
22-
server-dir: /radio/QSL_card_designer/ # デプロイ先のディレクトリ(必要に応じて変更)
23-
exclude: |
24-
**/.git*
25-
**/.git*/**
26-
**/node_modules/**
27-
.github/**
22+
local_path: './*'
23+
remote_path: '/radio/QSL_card_designer/'
24+
sftp_only: true
25+
delete_remote_files: false

0 commit comments

Comments
 (0)