-
Notifications
You must be signed in to change notification settings - Fork 15
32 lines (28 loc) · 967 Bytes
/
build_site.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Publish docs via GitHub Pages
on:
push:
branches:
- main
jobs:
build:
name: Deploy docs
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Checkout main
uses: actions/checkout@v2
- name: Build wheels
shell: bash -l {0}
run: |
bash docs/create_docs.sh
# NOT SURE HOW TO AUTOMATE VERSIONING, RUNNING THIS WILL WIPE EVERYTHING
# - name: Deploy docs
# uses: mhausenblas/mkdocs-deploy-gh-pages@master
# # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# # CUSTOM_DOMAIN: optionaldomain.com
# CONFIG_FILE: mkdocs.yml
# # EXTRA_PACKAGES: mkdocstrings
# # GITHUB_DOMAIN: github.myenterprise.com
# REQUIREMENTS: docs/requirements.txt