small improvements to wavefront_exact: #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Make docs | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# This cancels any such job that is still runnning | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v2 | |
# Install Python | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.8' | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install pdoc -U | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Install skeletor | |
run: | | |
pip install -e . | |
- name: Build docs | |
run: | | |
pdoc -o ./docs skeletor | |
- name: Change index.html | |
run: | | |
cp ./docs/skeletor.html ./docs/index.html | |
# Configure Github | |
- name: setup git config | |
run: | | |
# setup the username and email. | |
git config user.name "GitHub Actions" | |
git config user.email "<>" | |
# Commit changes | |
- name: commit | |
run: | | |
# Stage the file, commit and push | |
git add ./docs | |
git commit -m "build docs" | |
git push origin master |