Bump actions/setup-python from 4 to 5 #197
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
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created | |
# For more information see: https://github.com/actions/setup-java#apache-maven-with-a-settings-path | |
--- | |
name: Build Sphinx Docs | |
on: | |
push: | |
branches: | |
- '**' | |
- '!main' | |
paths: | |
- 'docs/source/**' | |
- '.github/workflows/*.yml' | |
workflow_dispatch: | |
jobs: | |
build: # job 1 | |
name: 'Build Docs' | |
runs-on: ubuntu-latest | |
if: github.actor != 'pdsen-ci' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | |
- name: Set up Python 3 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
pip install -r requirements.txt | |
- name: Make Sphinx | |
id: make | |
run: | | |
cd docs | |
make github | |
cd .. | |
- name: Push LDDs to Github | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "PDSEN CI Bot" | |
git add -A . | |
git commit --allow-empty -m "Auto-generated docs by PDSEN CI Bot" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }} | |
branch: ${{ github.ref }} |