hookshot/.github/workflows/docs-latest.yml

38 lines
870 B
YAML
Raw Normal View History

2021-11-29 10:26:11 +00:00
name: Build docs
on:
push:
paths-ignore:
- changelog.d/**'
2021-11-29 10:26:11 +00:00
jobs:
deploy:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16
# We want to install matrix-appservice-bridge, which we depend on.
- run: yarn --ignore-scripts
2021-11-29 10:26:11 +00:00
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: '0.4.11'
- run: mdbook build
- name: Deploy latest
uses: peaceiris/actions-gh-pages@v3
2021-11-29 14:30:15 +00:00
# Only push if this is main, otherwise we just want to build
if: github.ref == 'refs/heads/main'
2021-11-29 10:26:11 +00:00
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
keep_files: true
publish_dir: ./book
destination_dir: ./latest