Skip to content

Commit ba2cf98

Browse files
authored
Add file copy steps to GitHub Pages workflow
Added steps to copy content files into the webviewer directory before deployment.
1 parent a216b56 commit ba2cf98

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,21 @@ jobs:
2323
steps:
2424
- name: Checkout
2525
uses: actions/checkout@v4
26-
26+
27+
- name: Copy content files into webviewer
28+
run: |
29+
cp readme.md cn_webviewer/readme.md
30+
cp -r docs cn_webviewer/docs
31+
cp -r static cn_webviewer/static
32+
2733
- name: Setup Pages
2834
uses: actions/configure-pages@v4
29-
35+
3036
- name: Upload artifact
3137
uses: actions/upload-pages-artifact@v3
3238
with:
33-
path: './cn_webviewer' # ← This tells it to deploy the /website folder!
34-
39+
path: './cn_webviewer'
40+
3541
- name: Deploy to GitHub Pages
3642
id: deployment
3743
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)