Skip to content

Commit

Permalink
Attempt at adding doco build and deploy actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob-Rau committed Jun 21, 2023
1 parent 8d1ad9f commit 852a493
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/d.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: D
name: Python Library Build

on:
push:
Expand Down Expand Up @@ -45,3 +45,27 @@ jobs:
run: |
# Build the project, with its main file included, without unittests
dub build -c library-python310-novtk -b release --compiler=$DC
- uses: ammaraskar/sphinx-action@master
with:
build-command: "sphinx-build -b html . _build -a"
docs-folder: "./pyhtml/"

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: './pyhtml/_build/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 852a493

Please sign in to comment.