This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
DOC: update intersphinx URL for docs (#13) #42
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: Build examples | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
env: | |
BUILD_NAME: 'github-actions[bot]' | |
BUILD_EMAIL: '<41898282+github-actions[bot]@users.noreply.github.com>' | |
BUILD_MESSAGE: 'build examples' | |
BUILD_BRANCH: 'build' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.8' | |
cache: 'pip' | |
- run: pip install -r requirements.txt | |
- run: pip install -r build-requirements.txt | |
- run: cd docs && make html | |
- run: | | |
git add -A | |
git config user.name "${BUILD_NAME}" | |
git config user.email "${BUILD_EMAIL}" | |
git commit -m "${BUILD_MESSAGE}" | |
git push -f origin HEAD:${BUILD_BRANCH} |