renaming make_links_full to create_sflux_links #233
This file contains hidden or 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: "Sphinx: Render docs" | |
on: | |
# Runs on pushes targeting the default branch | |
push: | |
branches: ["main", "master"] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
# This workflow contains a single job called "build" | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libgfortran5 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Add conda to system path | |
run: | | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Conda build env for docs | |
run: | | |
conda env create -f schism_env.yml | |
source $CONDA/etc/profile.d/conda.sh | |
conda activate schism | |
conda install -c conda-forge libgfortran=3 | |
pip install -r docsrc/requirements.txt | |
pip install -e ./bdschism | |
- name: Build HTML | |
run: | | |
source $CONDA/etc/profile.d/conda.sh | |
conda activate schism | |
cd docsrc/ | |
# sphinx-apidoc --force -o . ../bdschism | |
make clean | |
make html | |
- name: Run ghp-import | |
shell: bash | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
source $CONDA/etc/profile.d/conda.sh | |
conda activate schism | |
git config http.postBuffer 157286400 | |
git pull | |
tree -L 2 -a | |
ghp-import -n -p -f ./docs/html |