From 0d46b99a2f3a84cb42fe0f42fffc061fcb5fa5a9 Mon Sep 17 00:00:00 2001 From: Adam Skoufis Date: Sun, 30 Jul 2023 13:08:27 +1000 Subject: [PATCH] Deploy with `.nojekyll` file so the `_astro` static assets folder is deployed alongside the site - https://github.blog/2009-12-29-bypassing-jekyll-on-github-pages/ --- .github/workflows/deploy-site.yaml | 4 +++- site/scripts/deploy.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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];