mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-14 16:37:14 +00:00
34 lines
870 B
YAML
34 lines
870 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- docs/**
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-20.04
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup mdBook
|
|
uses: peaceiris/actions-mdbook@v1
|
|
with:
|
|
mdbook-version: '0.4.10'
|
|
# mdbook-version: 'latest'
|
|
|
|
- run: cd docs && mdbook build
|
|
|
|
- name: Deploy 🚀
|
|
uses: JamesIves/github-pages-deploy-action@v4.2.3
|
|
with:
|
|
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
|