Skip to content

Commit

Permalink
Prepare workflow to publish gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
atztogo committed Jan 2, 2023
1 parent 9d1166d commit a4529dd
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/phono3py-pytest-conda-mkl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Pytest with mkl
on:
push:
branches-ignore:
- publish-gh-pages
- master
- rc

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/phono3py-pytest-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Pytest with openblas
on:
push:
branches-ignore:
- publish-gh-pages
- master
- rc

Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/publish-gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
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:
python-version: ["3.9"]

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
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 }}
conda install --yes -c conda-forge sphinx-book-theme linkify-it-py "myst-parser=0.17.2" sphinxcontrib-bibtex
- 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 }}

0 comments on commit a4529dd

Please sign in to comment.