From 83184fdf2697153496bf014a428b81010c81a5aa Mon Sep 17 00:00:00 2001 From: Jackie Edwards <6126319+Protowalker@users.noreply.github.com> Date: Sat, 25 May 2024 12:52:07 -0400 Subject: [PATCH 1/3] Create github-pages.yml --- .github/workflows/github-pages.yml | 51 ++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/github-pages.yml diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml new file mode 100644 index 0000000..93a3f19 --- /dev/null +++ b/.github/workflows/github-pages.yml @@ -0,0 +1,51 @@ +# Simple workflow for deploying static content to GitHub Pages +name: Deploy static content to Pages + +on: + # Runs on pushes targeting the default branch + push: + branches: ['main'] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: 'pages' + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: 'npm' + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build -- --mode "gh-pages" + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + # Upload dist folder + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 From ec7e9f0f94a3a0cb76252f7038f7db4da1a22b75 Mon Sep 17 00:00:00 2001 From: Jackie Edwards <6126319+Protowalker@users.noreply.github.com> Date: Sat, 25 May 2024 12:56:14 -0400 Subject: [PATCH 2/3] Update github-pages.yml --- .github/workflows/github-pages.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 93a3f19..31e4daa 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -34,11 +34,11 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 - cache: 'npm' + cache: '' - name: Install dependencies - run: npm ci + run: bun install --frozen-lockfile - name: Build - run: npm run build -- --mode "gh-pages" + run: bun run build -- --mode "gh-pages" - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifact From b8f24ee00f6772dfedf1621ba55e2b9ba8359ade Mon Sep 17 00:00:00 2001 From: Jackie Edwards <6126319+Protowalker@users.noreply.github.com> Date: Sat, 25 May 2024 12:57:50 -0400 Subject: [PATCH 3/3] Update github-pages.yml --- .github/workflows/github-pages.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/github-pages.yml b/.github/workflows/github-pages.yml index 31e4daa..606b6f9 100644 --- a/.github/workflows/github-pages.yml +++ b/.github/workflows/github-pages.yml @@ -30,6 +30,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Set up Bun + uses: oven-sh/setup-bun@v1 + with: + bun-version: latest - name: Set up Node uses: actions/setup-node@v4 with: