Skip to content

add gh-pages creation code #2

add gh-pages creation code

add gh-pages creation code #2

Workflow file for this run

name: Build and Deploy Documentation
on:
push:
branches:
- dev/master
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
env:
CI_COMMIT_AUTHOR: ${{ github.event.head_commit.author.name }}
CI_COMMIT_EMAIL: ${{ github.event.head_commit.author.email }}
jobs:
docs-build-and-deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Cache Python Environment
uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml') }}
- name: Set Up Dependencies
run: |
pip install .[dev]
- name: Build and Deploy Documentation
run: |
git config --global user.name "${{ env.CI_COMMIT_AUTHOR }}"
git config --global user.email "${{ env.CI_COMMIT_EMAIL }}"
cd doc && ./make.sh && REPO_URL=https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git ./upload.sh