Fix the failing dependency installiation for website buidling #32
Workflow file for this run
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_website | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| deployments: write | |
| pages: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| deployments: write | |
| pages: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.12' | |
| - name: Install development and distributions version | |
| run: | | |
| pip install --upgrade pip pip-tools | |
| git submodule update --init --recursive | |
| pip-compile pyproject.toml --extra docs -o requirements_docs.txt | |
| pip install -r requirements_docs.txt | |
| # - name: Setup pandoc | |
| # uses: siacodelabs/setup-pandoc@v1 | |
| # with: | |
| # xelatex: true | |
| - name: Install pandoc | |
| uses: pandoc/actions/setup@v1 | |
| - name: Run pandoc | |
| run: pandoc --version | |
| # didn't need to change anything here, but had to add sphinx.ext.githubpages | |
| # to my conf.py extensions list. that fixes the broken uploads | |
| - name: Building documentation | |
| run: | | |
| cd doc | |
| make html | |
| # still need to build and set the PAT to get a rebuild on the pages job, | |
| # apart from that quite clean and nice | |
| - name: GitHub Pages Action | |
| if: | | |
| (github.event_name == 'push' && github.ref == 'refs/heads/main') || | |
| (github.event.pull_request.merged == true && | |
| github.event.pull_request.base.ref == 'main') | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./doc/_build/html | |
| publish_branch: gh-pages | |
| cname: cugbasis.qcdevs.org |