Skip to content

Commit 6ab46e4

Browse files
authored
Update deploy-main-site.yml
1 parent 0849996 commit 6ab46e4

File tree

1 file changed

+27
-3
lines changed

1 file changed

+27
-3
lines changed

.github/workflows/deploy-main-site.yml

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,41 @@ jobs:
4343
remote_path: '${{ secrets.SFTP_PATH }}'
4444
delete_remote_files: false
4545

46-
- name: Publish Lab Notes into lab-api (SFTP)
46+
- name: Debug Lab Notes (runner)
47+
run: |
48+
echo "PWD=$(pwd)"
49+
ls -la ./src/labnotes || true
50+
echo "EN:"
51+
ls -la ./src/labnotes/en || true
52+
echo "KO:"
53+
ls -la ./src/labnotes/ko || true
54+
echo "Counts:"
55+
echo "EN md count: $(ls - ./src/labnotes/en/*.md 2>/dev/null | wc -l)"
56+
echo "KO md count: $(ls -1 ./src/labnotes/ko/*.md 2>/dev/null | wc -l)"
57+
58+
- name: Publish Lab Notes EN into lab-api (SFTP)
4759
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
4860
with:
4961
server: ${{ secrets.SFTP_HOST }}
5062
username: ${{ secrets.SFTP_USER }}
5163
password: ${{ secrets.SFTP_PASS }}
5264
port: 22
53-
local_path: './src/labnotes/*'
54-
remote_path: '/home/humanpatternlab/lab-api/content/labnotes'
65+
local_path: './src/labnotes/en/*'
66+
remote_path: '/home/humanpatternlab/lab-api/content/labnotes/en'
5567
delete_remote_files: false
5668

69+
- name: Publish Lab Notes KO into lab-api (SFTP)
70+
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
71+
with:
72+
server: ${{ secrets.SFTP_HOST }}
73+
username: ${{ secrets.SFTP_USER }}
74+
password: ${{ secrets.SFTP_PASS }}
75+
port: 22
76+
local_path: './src/labnotes/ko/*'
77+
remote_path: '/home/humanpatternlab/lab-api/content/labnotes/ko'
78+
delete_remote_files: false
79+
80+
5781

5882

5983

0 commit comments

Comments
 (0)