Skip to content

Commit 8fd6411

Browse files
committed
ci: fix design-common.css and x.md file 404
1 parent 266590c commit 8fd6411

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

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

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,19 @@ jobs:
4343
with:
4444
source: ./examples/sites/dist
4545
destination: ./_site
46-
- run: sudo chmod -R 777 ./dist
46+
- run: sudo chmod -R 777 ./_site
4747
- run: cp ./examples/sites/dist/assets/_commonjsHelpers*.js ./_site/assets
4848
- run: cp ./_site/index.html ./_site/404.html
49+
- run: sed -i 's/\/static/\/tiny-vue\/static/' ./_site/static/js/design-common.js
50+
- run: ls ./_site/\@demos/app/button/webdoc
51+
- run: ls ./_site/\@demos/app/dialog-select/webdoc
52+
- run: sudo apt update
53+
- run: sudo apt install -y rename
54+
- run: man rename
55+
- run: rename 's/.html/.md/' ./_site/\@demos/app/*/webdoc/*.html
56+
- run: ls ./_site/\@demos/app/alert/webdoc
57+
- run: cp ./examples/sites/dist/@demos/app/button/webdoc/*.md ./_site/\@demos/app/button/webdoc
58+
- run: ls ./_site/\@demos/app/button/webdoc
4959
- name: Upload artifact
5060
uses: actions/upload-pages-artifact@v3
5161

0 commit comments

Comments
 (0)