Skip to content

Commit

Permalink
.github/workflows/sphinx: GitHub pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdarst committed Aug 12, 2021
1 parent 56e109a commit bacaef0
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sphinx.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Sphinx
on: [push]

jobs:
sphinx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Sphinx build
run: |
make clean dirhtml SPHINXOPTS= SPHINX_EXT_SUBSTITUTION_PATH=sites/aalto/
- name: Deploy GitHub pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with: |
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build/dirhtml/
cname: hands-on.coderefinery.org
force_orphan: true

0 comments on commit bacaef0

Please sign in to comment.