use different random seed #35
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 Documentation | |
on: | |
push: | |
branches: | |
- dev | |
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: | | |
source .github/setup.sh ${{ runner.os }} $env | |
python -m pip install -r docs/requirements.txt | |
- 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 docs && ./make.sh && REPO_URL=https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git ./upload.sh |