Skip to content

Generate data and build dashboard #13

Generate data and build dashboard

Generate data and build dashboard #13

Workflow file for this run

name: Generate data and build dashboard
on:
schedule:
# Every Friday at midnight
- cron: '0 0 * * FRI'
workflow_dispatch:
jobs:
build:
name: Generate & build dashboard
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check-out the repository
uses: actions/checkout@v4
- name: Update dependencies
run: |
npm update web-features
npx npm-check-updates -u
npm install
npx playwright install
- name: Compute feature data
run: npm run generate
- name: Retrieve latest WPT revision and results
run: |
npm run get-wpt-shas
npm run update-wpt
- name: Commit changes
run: |
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
git add .
git commit -m "Weekly regen" --allow-empty
git push origin main
- name: Generate site
run: npm run build-site
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs