Skip to content

Commit

Permalink
Deployment files for the documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppinski-hqs committed Apr 30, 2024
1 parent 86782e7 commit 09bac44
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/docs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build and Deploy Documentation

on:
workflow_dispatch:
release:
types: [created]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
publish_documentation:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
environment-file: dev/environment.yml
activate-environment: asf_docenv
miniforge-variant: Mambaforge
use-mamba: true
miniforge-version: latest
python-version: 3.11
- name: Conda Info
run: |
conda info
conda list
- name: Install dependencies
run: python -m pip install .[doc]
- name: Initialize DMRG-SCF settings
run: bash ./init_dmrgscf_settings.sh
- name: Build docs
run: |
cd doc
python -m sphinx -T -E -b html . _build/html
cd ..
- name: Publish docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/_build/html
12 changes: 12 additions & 0 deletions dev/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: asfbase
channels:
- conda-forge
dependencies:
- gcc
- openmpi
- cmake
- libblas=*=*mkl
- mkl=2021
- numpy
- scipy<1.11
- jmol

0 comments on commit 09bac44

Please sign in to comment.