Skip to content

Commit

Permalink
added yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
simongravelle committed Jun 14, 2024
1 parent 06471e5 commit fac6f6b
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Deploy GitHub Pages

on:
push:
branches:
- main # Set a branch name to trigger deployment
jobs:
deploy:
runs-on: ubuntu-20.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
context: .
submodules: true
fetch-depth: 0
- name: Set up Python
uses: actions/[email protected]
with:
context: .
python-version: 3.9
- name: Install sphinx
run: |
pip install sphinx
pip install furo
pip install sphinx-togglebutton
pip install sphinx-favicon
pip install sphinxcontrib.bibtex
- name: Build
run: |
cd docs/
make clean
make html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
context: .
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/

0 comments on commit fac6f6b

Please sign in to comment.