Skip to content

doc(quil-py): Publish documentation on GitHub Pages #9

doc(quil-py): Publish documentation on GitHub Pages

doc(quil-py): Publish documentation on GitHub Pages #9

Workflow file for this run

name: Publish quil-py
on:
pull_request:
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install poetry
uses: snok/install-poetry@v1
- uses: Swatinem/rust-cache@v2
- name: Install cargo-make
uses: actions-rs/cargo@v1
with:
command: install
args: --debug cargo-make
- name: Build quil-py documentation
uses: actions-rs/cargo@v1
with:
command: make
args: --cwd quil-py --makefile Makefile.toml ci-flow
- uses: actions/upload-pages-artifact@v2
with:
path: build/docs/
deploy-docs:
needs: publish-docs
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v2