mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-14 16:37:14 +00:00
Merge pull request #228 from DioxusLabs/jk/autodeploy-docs
feat: add docs autdeploy
This commit is contained in:
commit
02d4bdbf72
1 changed files with 35 additions and 0 deletions
35
.github/workflows/docs.yml
vendored
Normal file
35
.github/workflows/docs.yml
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
name: github pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- docs
|
||||
|
||||
jobs:
|
||||
build-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
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 ../docs/nightly/guide && cd .. &&
|
||||
cd reference && mdbook build -d ../docs/nightly/reference && cd .. &&
|
||||
cd router && mdbook build -d ../docs/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
|
Loading…
Reference in a new issue