Merge pull request #109 from ajnonaka/heffte_index_fix #141
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: Build and Deploy | |
on: [push, pull_request] | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Dependencies | |
run: | | |
.github/workflows/dependencies/documentation.sh | |
echo "Installing python packages for docs..." | |
pip3 install sphinx sphinx_rtd_theme breathe | |
- name: Install and Build | |
run: | | |
cd Docs | |
echo "Build the Sphinx documentation for amrex-tutorials." | |
make latexpdf | |
mv build/latex/amrex.pdf source/ | |
make html | |
- name: Deploy | |
if: github.event_name == 'push' && github.repository == 'AMReX-Codes/amrex-tutorials' && github.ref == 'refs/heads/main' | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
ACCESS_TOKEN: ${{ secrets.DEPLOY_DOCS_TUTORIALS }} | |
REPOSITORY_NAME: AMReX-Codes/AMReX-Codes.github.io | |
BRANCH: main # The branch the action should deploy to. | |
FOLDER: Docs/build/html # The folder the action should deploy. | |
TARGET_FOLDER: amrex/tutorials_html # The folder the action should deploy to. | |
CLEAN: false # Do not remove existing files from the deploy target. |