diff --git a/.github/workflows/deploy-new-design.yml b/.github/workflows/deploy-new-design.yml new file mode 100644 index 0000000..4b78e4d --- /dev/null +++ b/.github/workflows/deploy-new-design.yml @@ -0,0 +1,53 @@ +name: Deploy New Design to GitHub Pages + +on: + push: + branches: + - new-design + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages-new-design" + cancel-in-progress: false + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Build website + env: + NEW_DESIGN_DEPLOY: 'true' + run: yarn build + + - name: Setup Pages + uses: actions/configure-pages@v4 + + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './dist' + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} diff --git a/index.html b/index.html index cd9e214..e74fdc3 100644 --- a/index.html +++ b/index.html @@ -4,6 +4,7 @@ +