Skip to content

Commit 447824e

Browse files
committed
cd: deploy
1 parent 34920c0 commit 447824e

File tree

7 files changed

+422
-68
lines changed

7 files changed

+422
-68
lines changed

.github/static.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/deploy.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: 'pages'
15+
cancel-in-progress: true
16+
17+
jobs:
18+
page-deployment:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v4
23+
- name: Setup Pages
24+
uses: actions/configure-pages@v5
25+
- run: npm i
26+
- run: npm run build
27+
- name: Upload artifact
28+
uses: actions/upload-pages-artifact@v3
29+
with:
30+
path: build/bibimbap-documentation
31+
- name: Deploy to GitHub Pages
32+
id: deployment
33+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
.DS_Store
33

44
# Default TypeSpec output
5-
tsp-output/
5+
./tsp-output/
66
dist/
77

88
# Dependency directories

build.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
tsp compile src
33
rm -rf build
44
mkdir build
5-
cp favicon-*.png build
6-
cp index.html build
7-
cp -r tsp-output build
8-
cp -r vendors build
9-
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

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
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
@@ -25,8 +25,8 @@
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"
@@ -311,11 +311,11 @@
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
/>

0 commit comments

Comments
 (0)