2022-02-10 16:18:36 +00:00
|
|
|
name: github pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2022-02-10 17:21:07 +00:00
|
|
|
- docs/**
|
2022-02-10 17:29:00 +00:00
|
|
|
- .github/workflows/docs.yml
|
2022-02-11 21:49:48 +00:00
|
|
|
branches:
|
|
|
|
- master
|
2022-02-10 16:18:36 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-deploy:
|
|
|
|
runs-on: ubuntu-latest
|
2022-02-10 17:29:00 +00:00
|
|
|
environment: docs
|
2022-02-10 16:18:36 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup mdBook
|
|
|
|
uses: peaceiris/actions-mdbook@v1
|
|
|
|
with:
|
|
|
|
mdbook-version: "0.4.10"
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cd docs &&
|
2022-02-10 17:33:33 +00:00
|
|
|
cd guide && mdbook build -d ../nightly/guide && cd .. &&
|
|
|
|
cd reference && mdbook build -d ../nightly/reference && cd .. &&
|
2022-02-27 09:06:58 +00:00
|
|
|
cd router && mdbook build -d ../nightly/router && cd .. &&
|
2022-02-27 09:05:01 +00:00
|
|
|
cd cli && mdbook build -d ../nightly/cli && cd ..
|
2022-02-10 16:18:36 +00:00
|
|
|
|
|
|
|
- name: Deploy 🚀
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4.2.3
|
|
|
|
with:
|
|
|
|
branch: gh-pages # The branch the action should deploy to.
|
|
|
|
folder: docs/nightly # The folder the action should deploy.
|
|
|
|
target-folder: docs/nightly
|
|
|
|
repository-name: dioxuslabs/docsite
|
|
|
|
clean: false
|
2022-02-10 17:29:00 +00:00
|
|
|
token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now
|