Skip to content

Commit

Permalink
chore: merge pull request #36 from threeal/use-github-page
Browse files Browse the repository at this point in the history
Deploy Documentation to GitHub Pages
  • Loading branch information
threeal authored Jul 11, 2023
2 parents 7a5902b + 9bb044a commit bcdd619
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 17 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,16 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
- name: Checkout
uses: actions/[email protected]

- name: Install dependencies
- name: Install requirements
run: pip3 install -r docs/requirements.txt

- name: Build documentation
- name: Build with Sphinx
run: sphinx-build -b html docs build/docs -W --keep-going

- name: Upload documentation as artifact
uses: actions/upload-artifact@v3.1.2
- name: Upload artifact
uses: actions/upload-pages-artifact@v1.0.8
with:
name: docs
path: build/docs
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: deploy
on:
workflow_dispatch:
push:
branches: [main]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout
uses: actions/[email protected]

- name: Install requirements
run: pip3 install -r docs/requirements.txt

- name: Setup Pages
uses: actions/[email protected]

- name: Build with Sphinx
run: sphinx-build -b html docs docs/build -W --keep-going

- name: Upload artifact
uses: actions/[email protected]
with:
path: docs/build

- name: Deploy to GitHub Pages
id: deployment
uses: actions/[email protected]
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
!.clang*
!.cmake*
!.git*
!.readthedocs*

build
10 changes: 0 additions & 10 deletions .readthedocs.yaml

This file was deleted.

0 comments on commit bcdd619

Please sign in to comment.