Modernize packaging (#79) #16
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 deployment | |
on: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: "${{ github.workflow }}-${{ github.ref }}" | |
cancel-in-progress: true | |
jobs: | |
docs: | |
if: github.repository == 'MDAnalysis/MDAnalysisData' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.9 | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install deps | |
run: | | |
python -m pip install "mdanalysis-sphinx-theme>=1.0.1" sphinx-sitemap | |
- name: Install main dependencies | |
run: | | |
python -m pip install tqdm | |
- name: install package | |
run: | | |
pip install -v . | |
- name: build docs | |
run: | | |
cd docs | |
make html | |
- name: deploy docs | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html | |
user_name: 'github-actions' | |
user_email: 'github-action@users.noreply.github.com' |