Merge pull request #2 from transientlunatic/copilot/translate-plots-t… #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: Sphinx site build | |
| on: | |
| push: | |
| branches: [ master, sphinx ] | |
| 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.x' | |
| - name: Setup ImageMagick | |
| run: | | |
| mkdir /tmp/imagick | |
| echo '<policymap><policy domain="coder" rights="read | write" pattern="PDF" /></policymap>' >> /tmp/imagick/policy.xml | |
| export MAGICK_CONFIGURE_PATH='/tmp/imagick/:$MAGICK_CONFIGURE_PATH' | |
| - name: Build HTML | |
| run: | | |
| pip install sphinx | |
| pip install kentigern | |
| pip install -r requirements.txt | |
| make html | |
| - name: SCP Deploy HTML | |
| uses: horochx/[email protected] | |
| with: | |
| local: _build/html/ | |
| remote: /home/danwilliams/notes.daniel-williams.co.uk/maths | |
| host: ${{ secrets.sshhost }} | |
| user: ${{ secrets.sshuser }} | |
| key: ${{ secrets.sshkey }} |