dioxus/.github/workflows/docs.yml
Jon Kelley cdb1e76f6f
Merge pull request #643 from DioxusLabs/dependabot/github_actions/JamesIves/github-pages-deploy-action-4.4.1
build(deps): bump JamesIves/github-pages-deploy-action from 4.2.3 to 4.4.1
2022-12-07 16:27:49 -08:00

42 lines
1.3 KiB
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@v3
# NOTE: Comment out when https://github.com/rust-lang/mdBook/pull/1306 is merged and released
# - name: Setup mdBook
# uses: peaceiris/actions-mdbook@v1
# with:
# mdbook-version: "0.4.10"
# NOTE: Delete when the previous one is enabled
- name: Setup mdBook
run: |
cargo install mdbook --git https://github.com/Ruin0x11/mdBook.git --branch localization --rev e74fdb1
- 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.4.1
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