Fix force pll APIs #655
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: Build and Deploy Doc | |
on: push | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.8'] | |
name: Python ${{ matrix.python-version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- run: pip install ".[cplex]" | |
- run: pip install -r requirements_dev.txt | |
- run: mkdocs build | |
deploy_dev: | |
name: Deploy master docs | |
runs-on: ubuntu-latest | |
needs: [build] | |
env: | |
POETRY_GIT_COMMITTER_NAME: "${{ secrets.GIT_NAME }}" | |
POETRY_GIT_COMMITTER_EMAIL: "${{ secrets.GIT_EMAIl }}" | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Build and push doc | |
run: | | |
pip install ".[cplex]" | |
pip install -r requirements_dev.txt | |
git config user.name "${{ secrets.GIT_NAME }}" | |
git config user.email "${{ secrets.GIT_EMAIl }}" | |
mike deploy --push master | |
deploy: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Build Doc | |
run: | | |
pip install ".[cplex]" | |
pip install -r requirements_dev.txt | |
mkdocs build -v | |
- name: Publish doc | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./site |