Skip to content

[pre-commit.ci] pre-commit autoupdate #7

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #7

Workflow file for this run

name: Build
on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- main
pull_request:
jobs:
doc:
name: Build Website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Build Site
run: make html
- uses: actions/upload-artifact@v4
with:
name: build
path: _build/html
deploy:
name: Publish Documentation
runs-on: ubuntu-latest
needs: doc
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: build
path: _build/html
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
cname: pyvista.org