File tree Expand file tree Collapse file tree 3 files changed +16
-17
lines changed
Expand file tree Collapse file tree 3 files changed +16
-17
lines changed Original file line number Diff line number Diff line change 1- # Simple workflow for deploying static content to GitHub Pages
21name : Deploy static content to Pages
32
43on :
5- # Runs on pushes targeting the default branch
64 push :
75 branches : [ "master" ]
86
9- # Allows you to run this workflow manually from the Actions tab
107 workflow_dispatch :
118
12- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
139permissions :
1410 contents : read
1511 pages : write
1612 id-token : write
1713
18- # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
19- # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
2014concurrency :
2115 group : " pages"
2216 cancel-in-progress : false
2317
2418jobs :
25- # Single deploy job since we're just deploying
2619 deploy :
2720 environment :
2821 name : github-pages
3427 - name : Setup Pages
3528 uses : actions/configure-pages@v5
3629 - name : Setup Project
37- run : npm install && chmod +x build.sh && ./build.sh
30+ run : |
31+ npm install
32+ npm install -g @typespec/compiler
33+ chmod +x build.sh
34+ ./build.sh
3835 - name : Upload artifact
3936 uses : actions/upload-pages-artifact@v3
4037 with :
Original file line number Diff line number Diff line change 22tsp compile src
33rm -rf build
44mkdir build
5- cp favicon-* .png build
6- cp index.html build
7- cp -r tsp-output build
8- cp -r vendors build
5+ mkdir build/bibimbap-documentation
6+ cp favicon-* .png build/bibimbap-documentation
7+ cp index.html build/bibimbap-documentation
8+ cp -r tsp-output build/bibimbap-documentation
9+ cp -r vendors build/bibimbap-documentation
10+ echo ' <meta http-equiv="refresh" content="0; url=/bibimbap-documentation" />' > build/index.html
911
Original file line number Diff line number Diff line change 1515 />
1616 < meta content ="bibimbap-documentation " property ="og:title " />
1717 <!-- <meta-->
18- <!-- content="https://solvedac.github.io/assets/solvedac-ud-full.png"-->
18+ <!-- content="https://solvedac.github.io/bibimbap-documentation/ assets/solvedac-ud-full.png"-->
1919 <!-- property="og:image"-->
2020 <!-- />-->
2121 < meta
2525 < meta content ="ko_KR " property ="og:locale " />
2626
2727
28- < link href ="/favicon-96x96.png " rel ="icon " sizes ="96x96 " type ="image/png ">
29- < script src ="/vendors/@stoplight/elements/web-components.min.js "> </ script >
28+ < link href ="/bibimbap-documentation/ favicon-96x96.png " rel ="icon " sizes ="96x96 " type ="image/png ">
29+ < script src ="/bibimbap-documentation/ vendors/@stoplight/elements/web-components.min.js "> </ script >
3030 < link
3131 href ="https://unpkg.com/@stoplight/elements/styles.min.css "
3232 rel ="stylesheet "
311311 }
312312</ script >
313313< elements-api
314- apiDescriptionUrl ="/tsp-output/@typespec/openapi3/openapi.yaml "
314+ apiDescriptionUrl ="/bibimbap-documentation/ tsp-output/@typespec/openapi3/openapi.yaml "
315315 hideInternal ="true "
316316 id ="elements "
317317 layout ="responsive "
318- logo ="/favicon-96x96.png "
318+ logo ="/bibimbap-documentation/ favicon-96x96.png "
319319 router ="hash "
320320 tryItCredentialsPolicy ="include "
321321/>
You can’t perform that action at this time.
0 commit comments