Skip to content

fix: packages

fix: packages #34

name: Deploy website to GitHub Pages on merge
on:
push:
branches:
- main
paths-ignore:
- 'firebase/functions/**'
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache packages
uses: actions/cache@v3
with:
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: node_modules
- uses: actions/setup-node@v4
with:
node-version: '24.x'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: cp dist/spa/index.html dist/spa/404.html
- uses: actions/upload-pages-artifact@v3
with:
path: dist/spa
deploy:
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5