Prechádzať zdrojové kódy

Add Github Action for Documentation Builds (#256)

HalfSweet 1 rok pred
rodič
commit
5fb7d4d0e9
2 zmenil súbory, kde vykonal 26 pridanie a 0 odobranie
  1. 25 0
      .github/workflows/deploy-docs.yml
  2. 1 0
      docs/.gitignore

+ 25 - 0
.github/workflows/deploy-docs.yml

@@ -0,0 +1,25 @@
+name: Deploy docs
+
+on:
+  push:
+    branches:
+      - master
+
+jobs:
+  deploy:
+    runs-on: ubuntu-latest
+    
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          fetch-depth: 0
+          submodules: true
+      - uses: ammaraskar/sphinx-action@master
+        with:
+          docs-folder: "docs/"
+      - uses: JamesIves/github-pages-deploy-action@v4
+        with:
+          branch: gh-pages
+          folder: docs/build/html
+
+

+ 1 - 0
docs/.gitignore

@@ -0,0 +1 @@
+*build