dioxus/.github/workflows/docs.yml
2022-07-07 06:29:40 -05:00

36 lines
966 B
YAML

name: github pages
on:
push:
paths:
- docs/**
- .github/workflows/docs.yml
branches:
- master
jobs:
build-deploy:
runs-on: ubuntu-latest
environment: docs
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: "0.4.10"
- name: Build
run: cd docs &&
cd guide && mdbook build -d ../nightly/guide && cd .. &&
cd router && mdbook build -d ../nightly/router && cd ..
- 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
token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now