Skip to content

Commit 5523a72

Browse files
committed
doc: add deploy website step in github doc workflow
Signed-off-by: Huaqi Fang <578567190@qq.com>
1 parent 2f99211 commit 5523a72

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/doc.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,13 @@ jobs:
6262
with:
6363
branch: gh-pages
6464
folder: NMSIS/doc/build/html
65+
66+
- name: Deploy Website
67+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/master' }}
68+
env:
69+
FTPUSER: ${{ secrets.FTPUSER }}
70+
FTPPWD: ${{ secrets.FTPPWD }}
71+
FTPSERVER: ${{ secrets.FTPSERVER }}
72+
run: |
73+
bash .ci/ftp_deploy.sh $FTPUSER $FTPPWD $FTPSERVER NMSIS/doc/build/html nmsis
74+

0 commit comments

Comments
 (0)