Publish docs via GitHub Pages #25
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: Publish docs via GitHub Pages | |
on: | |
release: | |
types: [created] | |
jobs: | |
build: | |
name: Deploy docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r docs/requirements.txt | |
- name: Package | |
run: | | |
make build | |
- name: Validate package | |
run: | | |
ls dist | |
PACKAGE=`ls dist/jsf-*.tar.gz` | |
pip3 install $PACKAGE\[cli\] | |
jsf --help | |
- name: Deploy docs | |
run: | | |
mkdocs gh-deploy --force |