Skip to content

Commit

Permalink
chore: Add .nojekyll file to out directory for GitHub Pages compatibi…
Browse files Browse the repository at this point in the history
…lity
  • Loading branch information
mashharuki committed Jun 8, 2024
1 parent 5e474ea commit a2434b4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ jobs:
- name: Export Pages Artifact
run: yarn frontend export

# しかしGitHub Pagesの仕様として_から始まるディレクトリが見えず404となる
# つまりHTMLからJSを読み込めない
# これを回避するために.nojekyllファイルをoutディレクトリに作る
- name: add nojekyll
run: touch ./pkgs/frontend/out/.nojekyll

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down

0 comments on commit a2434b4

Please sign in to comment.