Skip to content

Deploy website

Deploy website #156

name: Deploy website
on:
workflow_dispatch:
# deploy daily @ 5:30 AM UTC
schedule:
- cron: '30 5 * * *'
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ⚙️ Setup Node
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'yarn'
- name: 🚚️ Install dependencies
working-directory: website
run: yarn install --frozen-lockfile
- name: ⬇️ Fetch the latest test results
working-directory: website
run: yarn data:fetch
env:
FIREBASE_APP_PROJECTNAME: ${{ secrets.FIREBASE_APP_PROJECTNAME }}
FIREBASE_APP_SERVICE_KEY: ${{ secrets.FIREBASE_APP_SERVICE_KEY }}
- name: 📦️ Build website app
working-directory: website
run: yarn build
env:
REPOSITORY_NAME: 'nightly-tests'
- name: 🚀 Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/out