dioxus/.github/workflows/docs.yml

33 lines
856 B
YAML
Raw Normal View History

2022-04-24 02:44:06 +00:00
name: github pages
on:
push:
branches:
2022-04-24 03:03:46 +00:00
- main
pull_request:
2022-04-24 02:44:06 +00:00
jobs:
2022-04-24 03:03:46 +00:00
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
2022-04-24 02:44:06 +00:00
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
2022-04-24 03:03:46 +00:00
mdbook-version: '0.4.10'
# mdbook-version: 'latest'
2022-04-24 02:44:06 +00:00
2022-04-24 03:03:46 +00:00
- run: cd docs && mdbook build
2022-04-24 02:44:06 +00:00
2022-04-24 03:22:02 +00:00
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@v4.2.3
2022-04-24 02:44:06 +00:00
with:
2022-04-24 03:22:02 +00:00
branch: gh-pages # The branch the action should deploy to.
folder: docs/book # The folder the action should deploy.
target-folder: docs/nightly/cli
repository-name: dioxuslabs/docsite
clean: false
token: ${{ secrets.DEPLOY_KEY }} # let's pretend I don't need it for now