Skip to content

Commit b41108f

Browse files
Merge pull request #726 from dynamsoft-docs/preview
Preview
2 parents 0f133c1 + cc33546 commit b41108f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ jobs:
4343
port: 21
4444
local-dir: /home/ubuntu/DWTDoc/_site/
4545
server-dir: /www.dynamsoft.com/web-twain/docs/
46+
47+
- name: Trigger Webhook
48+
run: |
49+
curl -X POST -H "${{ secrets.WEBHOOK_USER }}" -H "${{ secrets.WEBHOOK_TOKEN }}" -H "Content-Type: application/json" -d "[\"/web-twain/docs/*\"]" ${{ secrets.WEBHOOK_URL }}
50+
4651
4752
Build-Preview:
4853
if: ${{ github.ref == 'refs/heads/preview' }}

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ jobs:
4747
local-dir: /home/ubuntu/DWTDoc/_site/
4848
server-dir: /www.dynamsoft.com/web-twain/docs/
4949

50+
- name: Trigger Webhook
51+
run: |
52+
curl -X POST -H "${{ secrets.WEBHOOK_USER }}" -H "${{ secrets.WEBHOOK_TOKEN }}" -H "Content-Type: application/json" -d "[\"/web-twain/docs/*\"]" ${{ secrets.WEBHOOK_URL }}
53+
54+
5055
Build-Preview:
5156
if: ${{ github.ref == 'refs/heads/preview' }}
5257
# The type of runner that the job will run on

0 commit comments

Comments
 (0)