Mask acoustic modes in q-space Lanczos using translation-based valid … #7
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: Deploy Documentation | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - 'docs/**' | |
| - 'mkdocs.yml' | |
| - 'Modules/**' | |
| - '.github/workflows/docs.yml' | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install system dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gfortran libblas-dev liblapack-dev mpich | |
| - name: Install Python dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install meson meson-python ninja | |
| pip install numpy scipy mpi4py spglib | |
| - name: Install CellConstructor and python-sscha | |
| run: | | |
| git clone --depth 1 https://github.com/SSCHAcode/CellConstructor.git | |
| pip install --no-build-isolation ./CellConstructor | |
| git clone --depth 1 https://github.com/SSCHAcode/python-sscha.git | |
| pip install --no-build-isolation ./python-sscha | |
| - name: Install tdscha | |
| run: pip install --no-build-isolation . | |
| - name: Install MkDocs and plugins | |
| run: pip install mkdocs mkdocs-material mkdocstrings[python] | |
| - name: Build documentation | |
| run: mkdocs build | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: site/ | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |