Files
replayweb.page/.github/workflows/site-publish.yaml
T
Ilya Kreymer 92343d59f7 Site reorg: Remove site/ subpath (#306)
Unfortunately, for proper package pathing, need to remove the `site/`
subpath. This includes:
- Moving everything back into root
- Adding a `copy-site.sh` script to copy resources into `mkdocs/site/`
before building the site with mkdocs.
- Also update examples to ensure all are loading the local sw.js / ui.js
- Consolidate examples in `docs/examples`
- Consolidate assets under src/assets/
- Move `favicons` to root
- Reformat and relint
- Tests: update playwright tests to use mkdocs output, add test for
embed in docs
- bump to 2.0.0-beta.2
2024-04-09 23:07:23 -07:00

34 lines
660 B
YAML

name: site-publish
on:
push:
branches:
- main
paths:
- 'site/**'
- 'mkdocs/**'
permissions:
contents: write
jobs:
deploy_site:
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'
- name: Yarn Install
run: yarn install --frozen-lockfile
- uses: actions/setup-python@v4
with:
python-version: 3.x
- run: pip install -r mkdocs/requirements.txt
- run: yarn run publish-docs