Skip to content

Automate package build and release #2149

Automate package build and release

Automate package build and release #2149

Workflow file for this run

name: Documentation
on: # yamllint disable-line rule:truthy
push:
branches:
- master
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.head_ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
make_html:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 40
# Skip workflow if only certain files have been changed.
- name: Get changed files
id: changed-files-specific
uses: tj-actions/changed-files@v45
with:
files: |
examples/**
README.md
CHANGELOG.md
- name: Setup packages
if: steps.changed-files-specific.outputs.only_changed != 'true'
uses: ./.github/actions/setup
- name: Install main package
if: steps.changed-files-specific.outputs.only_changed != 'true'
run: |
pip install git+https://github.com/pyg-team/pyg_sphinx_theme.git
pip install -e .
pip list
- name: Build documentation
if: steps.changed-files-specific.outputs.only_changed != 'true'
run: |
cd docs && make clean && make html SPHINXOPTS="-W" # Fail on warning.