Skip to content

Merge pull request #20 from ludovicm67/dependabot/npm_and_yarn/playwr… #40

Merge pull request #20 from ludovicm67/dependabot/npm_and_yarn/playwr…

Merge pull request #20 from ludovicm67/dependabot/npm_and_yarn/playwr… #40

Workflow file for this run

name: Build static website and deploy it
on:
push:
branches:
- main
workflow_dispatch: {}
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node version
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install project dependencies
run: npm install
- name: Install Playwright browsers
run: npx playwright install
- name: Generate website
run: npm start
- name: Configure CNAME
run: echo webrtc-available-stats-properties.ludovicm67.fr > public/CNAME
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: public