From 06f4bf31dee411e97ef69e317d3a4329742e5463 Mon Sep 17 00:00:00 2001 From: Jess Heron Date: Fri, 20 Oct 2023 13:43:31 -0700 Subject: [PATCH 1/3] Adds github pages publishing action. --- .github/workflows/circle.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 .github/workflows/circle.yml diff --git a/.github/workflows/circle.yml b/.github/workflows/circle.yml new file mode 100644 index 00000000..e69de29b From 72ed2aef200e7d2e2b5f3332fa36ebb5e5c5c8db Mon Sep 17 00:00:00 2001 From: Jess Heron Date: Fri, 20 Oct 2023 13:45:29 -0700 Subject: [PATCH 2/3] Adds deploy branch trigger for github pages publishing action. --- .github/workflows/circle.yml | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.github/workflows/circle.yml b/.github/workflows/circle.yml index e69de29b..a29e2a27 100644 --- a/.github/workflows/circle.yml +++ b/.github/workflows/circle.yml @@ -0,0 +1,41 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - deploy + # Review gh actions docs if you want to further define triggers, paths, etc + # https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on + +jobs: + deploy: + name: Deploy to GitHub Pages + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + cache-dependency-path: "./package-lock.json" + + - name: Install dependencies + run: yarn install --frozen-lockfile + - name: Build website + run: yarn build + + # Popular action to deploy to GitHub Pages: + # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + # Build output to publish to the `gh-pages` branch: + publish_dir: ./build + # The following lines assign commit authorship to the official + # GH-Actions bot for deploys to `gh-pages` branch: + # https://github.com/actions/checkout/issues/13#issuecomment-724415212 + # The GH actions bot is used by default if you didn't specify the two fields. + # You can swap them out with your own user credentials. + user_name: github-actions[bot] + user_email: 41898282+github-actions[bot]@users.noreply.github.com \ No newline at end of file From d0c2a912d5902eea34dbca578216b47a8e086e16 Mon Sep 17 00:00:00 2001 From: Jess Heron Date: Fri, 20 Oct 2023 13:54:07 -0700 Subject: [PATCH 3/3] Switch to npm from yarn. --- .github/workflows/circle.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/circle.yml b/.github/workflows/circle.yml index a29e2a27..97d6565f 100644 --- a/.github/workflows/circle.yml +++ b/.github/workflows/circle.yml @@ -16,13 +16,13 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 18 - cache: yarn + cache: npm cache-dependency-path: "./package-lock.json" - name: Install dependencies - run: yarn install --frozen-lockfile + run: npm ci - name: Build website - run: yarn build + run: npm run build # Popular action to deploy to GitHub Pages: # Docs: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-docusaurus