adding the deploy script for the docs to firebase
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"projects": {
|
||||||
|
"default": "itsamejms"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -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
|
|
||||||
@@ -139,3 +139,5 @@ kp_determinants2
|
|||||||
*.Rproj
|
*.Rproj
|
||||||
.Rhistory
|
.Rhistory
|
||||||
scratch*
|
scratch*
|
||||||
|
# Firebase
|
||||||
|
.firebase/
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"hosting": {
|
||||||
|
"site": "matti-jms",
|
||||||
|
"public": "docs/build/html",
|
||||||
|
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
|
||||||
|
"cleanUrls": true,
|
||||||
|
"trailingSlash": false
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user