-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (35 loc) · 1.01 KB
/
github-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Publish Github Pages
on:
workflow_dispatch:
push:
branches: [main]
paths-ignore:
- .github/workflows/default.yml
# Cancel any in-progress job or run
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
concurrency:
group: gh-${{ github.ref }}
cancel-in-progress: true
jobs:
pages:
runs-on: ubuntu-20.04
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
pages: write
id-token: write
steps:
- run: |
sudo locale-gen en_US.UTF-8
sudo update-locale
- uses: awalsh128/cache-apt-pkgs-action@master
with:
packages: lilypond timidity imagemagick fonts-noto-cjk graphviz plantuml ffmpeg
- id: deployment
uses: sphinx-notes/pages@v3
with:
documentation_path: ./docs/source
requirements_path: ./requirements.txt
cache: false