Compare commits

...

1 Commits

Author SHA1 Message Date
itsamejms 95c3bd7338 adding the deploy script for the docs to firebase 2026-08-17 12:02:08 +01:00
5 changed files with 22 additions and 34 deletions
+5
View File
@@ -0,0 +1,5 @@
{
"projects": {
"default": "itsamejms"
}
}
-33
View File
@@ -1,33 +0,0 @@
name: Sphinx build
on:
push:
branches:
- 'main'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- name: Build HTML
uses: ammaraskar/sphinx-action@0.4
with:
# docs-folder: "docs/"
# build-command: "sphinx-build -b html docs/source/ docs/build/html"
pre-build-command: "apt-get update -y && apt-get install -y pandoc"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
+2
View File
@@ -139,3 +139,5 @@ kp_determinants2
*.Rproj *.Rproj
.Rhistory .Rhistory
scratch* scratch*
# Firebase
.firebase/
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
# Build the Sphinx docs and deploy to Firebase Hosting (site: matti-jms).
set -euo pipefail
sphinx-build -b html docs/source/ docs/build/html
firebase deploy --only hosting:matti-jms
+9
View File
@@ -0,0 +1,9 @@
{
"hosting": {
"site": "matti-jms",
"public": "docs/build/html",
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"cleanUrls": true,
"trailingSlash": false
}
}