Skip to content

Commit eb7e68a

Browse files
committed
update
1 parent 5c1ba77 commit eb7e68a

File tree

2 files changed

+37
-2
lines changed

2 files changed

+37
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

js/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)