diff --git a/.github/workflows/deploy-site.yaml b/.github/workflows/deploy-site.yaml index 7a7269d..3b17f41 100644 --- a/.github/workflows/deploy-site.yaml +++ b/.github/workflows/deploy-site.yaml @@ -30,6 +30,8 @@ jobs: run: pnpm build:site - name: Deploy site - run: pnpm run deploy:site + # Create a `.nojekyll` file so the `_astro` folder gets deployed + # https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ + run: touch ./site/dist/.nojekyll && pnpm run deploy:site env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/site/scripts/deploy.ts b/site/scripts/deploy.ts index cc58fe9..a573d2e 100644 --- a/site/scripts/deploy.ts +++ b/site/scripts/deploy.ts @@ -49,6 +49,7 @@ const publishConfig = { name: 'github-actions[bot]', email: 'github-actions[bot]@users.noreply.github.com', }, + dotfiles: true, }; type PublishCallback = Parameters[2];