Refactor package structure #100
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
name: Docs | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
jobs: | |
build-docs: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/[email protected] | |
with: | |
access_token: ${{ github.token }} | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: 'pip' | |
- name: Create venv and install deps | |
run: | | |
pip install --upgrade pip wheel | |
pip install -r docs/requirements.txt | |
python3 -m bash_kernel.install | |
- name: Install package | |
run: | | |
python3 -m pip install . | |
- name: Record casts | |
run: | | |
asciinema-automation docs/cast_scripts/vcf2zarr_convert.sh docs/_static/demo.cast | |
- name: Build Docs | |
run: | | |
make -C docs | |
- name: Upload Pages Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: docs/_build/html | |
deploy: | |
needs: build-docs | |
if: github.event_name != 'pull_request' | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |