Skip to content

feat: actually working chart #2

feat: actually working chart

feat: actually working chart #2

Workflow file for this run

name: Deploy Github Pages
on:
push:
branches: main
jobs:
# Build job
build:
name: Build Project
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
uses: ./.github/composite-actions/setup
- name: Build
run: PUBLIC_ENV__BASE_URL=/loveca-namecard bun run ci:build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist/client
# <Not provided for brevity>
# At a minimum this job should upload artifacts using actions/upload-pages-artifact
# Deploy job
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
outputs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
lighthouse:
runs-on: ubuntu-latest
needs: deploy
steps:
- uses: actions/checkout@v4
- name: Audit URLs using Lighthouse
uses: treosh/lighthouse-ci-action@v11
with:
urls: ${{ needs.deploy.outputs.url }}
budgetPath: ./budget.json # test performance budgets
temporaryPublicStorage: true
- name: Running Page Speed Insights
uses: jakepartusch/psi-action@v1.3
id: psi
with:
url: ${{ needs.deploy.outputs.url }}
threshold: 80
strategy: desktop