From 8e9b0f35b4bafcb69218f661e05c1ef52eb413c2 Mon Sep 17 00:00:00 2001 From: Braden MacDonald Date: Fri, 29 Dec 2023 11:37:04 -0800 Subject: [PATCH] Deploy to GitHub Pages --- .github/workflows/deploy.yaml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/deploy.yaml diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml new file mode 100644 index 0000000..a04b4d3 --- /dev/null +++ b/.github/workflows/deploy.yaml @@ -0,0 +1,37 @@ +name: Deploy to GitHub Pages + +on: + push: + branches: + - main + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + - name: Setup Node + uses: actions/setup-node@v3 + - name: Install dependencies + run: npm install + - name: Build project using Vite + run: npm run build + - name: Upload static site as artifact + uses: actions/upload-pages-artifact@v2 + with: + path: dist + deploy: + needs: build + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v2