knoepfel building the Phlex design document π #22
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: Build design document | |
| run-name: ${{ github.actor }} building the Phlex design document π | |
| on: | |
| push: | |
| paths: | |
| - 'doc/**' | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| Build-Design-Document-Actions: | |
| runs-on: ubuntu-latest | |
| container: | |
| image: ghcr.io/xu-cheng/texlive-full:latest | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| - name: Check out repository code | |
| uses: actions/checkout@v4 | |
| - name: Setting up Miniforge | |
| uses: conda-incubator/setup-miniconda@v3 | |
| with: | |
| mamba-version: "*" | |
| miniforge-version: latest | |
| auto-update-conda: true | |
| activate-environment: build_docs | |
| show-channel-urls: true | |
| conda-remove-defaults: true | |
| environment-file: environment.yml | |
| - name: Cache date | |
| id: get-date | |
| run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT | |
| shell: bash | |
| - name: Cache Conda env | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.CONDA }}/envs | |
| key: miniforge-${{ runner.os }}--${{ runner.arch }}--${{ steps.get-date.outputs.today }}-${{ hashFiles('environment.yml') }}-${{ env.CACHE_NUMBER }} | |
| env: | |
| CACHE_NUMBER: 1 | |
| id: cache | |
| - name: Build document | |
| working-directory: ./doc | |
| run: | | |
| conda activate build_docs | |
| dot -c # because it's weird out of the box | |
| make html latex | |
| # - name: Make the PDF file | |
| # uses: xu-cheng/latex-action@v3 | |
| # with: | |
| # working_directory: ./doc/build/latex/ | |
| # root_file: phlexframework.tex | |
| - run: echo "Build status ${{ job.status }}" |