phono3py/.github/workflows/publish-gh-pages.yml

42 lines
1.1 KiB
YAML
Raw Normal View History

2023-01-02 20:45:52 +08:00
name: publish phono3py gh-pages
on:
push:
branches: [publish-gh-pages]
jobs:
docs:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
2023-07-03 18:41:58 +08:00
python-version: ["3.11"]
2023-01-02 20:45:52 +08:00
steps:
2024-06-19 09:44:22 +08:00
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
2023-01-02 20:45:52 +08:00
with:
auto-update-conda: true
channels: conda-forge
channel-priority: strict
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
conda activate test
conda install --yes -c conda-forge python=${{ matrix.python-version }}
2023-07-03 18:41:58 +08:00
conda install --yes -c conda-forge sphinx-book-theme linkify-it-py myst-parser sphinxcontrib-bibtex ipython
2023-01-02 20:45:52 +08:00
- name: Build
run: |
conda activate test
sphinx-build doc docs_build
- name: Deploy docs at develop branch
if: ${{ github.ref == 'refs/heads/publish-gh-pages' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs_build
# deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}