ConfigSpace Technology Integration for Enhanced GAMA Configuration and Management 🥇 #56
Workflow file for this run
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: Docs | |
on: | |
push: | |
branches: | |
- master | |
- main | |
- "[0-9][0-9].[0-9]+.x" | |
pull_request: | |
branches: | |
- master | |
- main | |
- "[0-9][0-9].[0-9]+.x" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ".[doc]" | |
- name: Clone GH-Pages | |
if: ${{ github.event_name != 'pull_request' }} | |
uses: actions/checkout@v3 | |
with: | |
ref: "gh-pages" | |
path: docs/build/ | |
- name: Build Docs | |
run: | | |
sphinx-build docs/source docs/build/${{ github.ref_name }} | |
- name: Push GH-Pages | |
if: ${{ github.event_name != 'pull_request' }} | |
run: | | |
cd docs/build | |
git config user.name github-actions | |
git config user.email [email protected] | |
git add ${{ github.ref_name }} | |
git commit -m "Autodeploy docs" | |
git push |