dioxus/.github/workflows/docs.yml

30 lines
645 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:03:46 +00:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
2022-04-24 02:44:06 +00:00
with:
2022-04-24 03:03:46 +00:00
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book