File tree Expand file tree Collapse file tree 2 files changed +37
-2
lines changed
Expand file tree Collapse file tree 2 files changed +37
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main # or your default branch name
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ jobs :
15+ deploy :
16+ runs-on : ubuntu-latest
17+ environment :
18+ name : github-pages
19+ url : ${{ steps.deployment.outputs.page_url }}
20+
21+ steps :
22+ - name : Checkout repository
23+ uses : actions/checkout@v4
24+
25+ - name : Setup Pages
26+ uses : actions/configure-pages@v4
27+
28+ - name : Upload artifact
29+ uses : actions/upload-pages-artifact@v3
30+ with :
31+ path : ' .'
32+
33+ - name : Deploy to GitHub Pages
34+ id : deployment
35+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ async function initializeApp() {
1111 try {
1212 // すべてのデータを並行して読み込む
1313 const [ codes , locations , membersResponse ] = await Promise . all ( [
14- fetch ( '/data/code.json' ) . then ( response => response . json ( ) ) ,
15- fetch ( '/data/locations.json' ) . then ( response => response . json ( ) ) ,
14+ fetch ( '. /data/code.json' ) . then ( response => response . json ( ) ) ,
15+ fetch ( '. /data/locations.json' ) . then ( response => response . json ( ) ) ,
1616 fetch ( './data/members.yaml' ) . then ( response => response . text ( ) )
1717 ] ) ;
1818
You can’t perform that action at this time.
0 commit comments