Skip to content

Commit 62abf0f

Browse files
committed
cd: deploy
1 parent 34920c0 commit 62abf0f

File tree

3 files changed

+16
-17
lines changed

3 files changed

+16
-17
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,21 @@
1-
# Simple workflow for deploying static content to GitHub Pages
21
name: Deploy static content to Pages
32

43
on:
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
139
permissions:
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.
2014
concurrency:
2115
group: "pages"
2216
cancel-in-progress: false
2317

2418
jobs:
25-
# Single deploy job since we're just deploying
2619
deploy:
2720
environment:
2821
name: github-pages
@@ -34,7 +27,11 @@ jobs:
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:

build.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
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
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

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)