Skip to content

Commit 70c11b6

Browse files
Merge pull request #716 from dynamsoft-docs/Jenny-branch
Jenny branch
2 parents cd9f88f + 1b8e80b commit 70c11b6

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/full-site-build.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ jobs:
3434
cd Docs-Template-Repo-Preview && git pull && cd .. && cp -rfp ./Docs-Template-Repo-Preview/* ./DWTDoc/
3535
cd DWTDoc && bundle exec jekyll build
3636
python3 /home/ubuntu/ftp.py /home/ubuntu/DWTDoc/_site/ ./www.dynamsoft.com/web-twain/docs/ prod
37+
38+
- name: Sync files
39+
uses: SamKirkland/FTP-Deploy-Action@4.3.0
40+
with:
41+
server: ${{ secrets.FTP_DYNAMSOFT_LOCAL_SERVER }}
42+
username: ${{ secrets.FTP_DYNAMSOFT_LOCAL_USER }}
43+
password: ${{ secrets.FTP_DYNAMSOFT_LOCAL_PASSWORD }}
44+
port: 21
45+
local-dir: /home/ubuntu/DWTDoc/_site/
46+
server-dir: /www.dynamsoft.com/web-twain/docs/core/
3747

3848
Build-Preview:
3949
if: ${{ github.ref == 'refs/heads/preview' }}

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ jobs:
3838
cd DWTDoc && bundle exec jekyll build --incremental
3939
python3 /home/ubuntu/ftp.py /home/ubuntu/DWTDoc/_site/ ./www.dynamsoft.com/web-twain/docs/ prod
4040
41+
- name: Sync files
42+
uses: SamKirkland/FTP-Deploy-Action@4.3.0
43+
with:
44+
server: ${{ secrets.FTP_DYNAMSOFT_LOCAL_SERVER }}
45+
username: ${{ secrets.FTP_DYNAMSOFT_LOCAL_USER }}
46+
password: ${{ secrets.FTP_DYNAMSOFT_LOCAL_PASSWORD }}
47+
port: 21
48+
local-dir: /home/ubuntu/DWTDoc/_site/
49+
server-dir: /www.dynamsoft.com/web-twain/docs/core/
50+
4151
Build-Preview:
4252
if: ${{ github.ref == 'refs/heads/preview' }}
4353
# The type of runner that the job will run on

0 commit comments

Comments
 (0)