diff --git a/.firebaserc b/.firebaserc new file mode 100644 index 0000000..568e070 --- /dev/null +++ b/.firebaserc @@ -0,0 +1,5 @@ +{ + "projects": { + "default": "itsamejms" + } +} \ No newline at end of file diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml deleted file mode 100644 index 3288c72..0000000 --- a/.github/workflows/sphinx.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 0109050..2505d01 100644 --- a/.gitignore +++ b/.gitignore @@ -138,4 +138,6 @@ kp_determinants2 *.Rproj .Rhistory -scratch* \ No newline at end of file +scratch* +# Firebase +.firebase/ diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..90c59d2 --- /dev/null +++ b/deploy.sh @@ -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 \ No newline at end of file diff --git a/firebase.json b/firebase.json new file mode 100644 index 0000000..96cd333 --- /dev/null +++ b/firebase.json @@ -0,0 +1,9 @@ +{ + "hosting": { + "site": "matti-jms", + "public": "docs/build/html", + "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], + "cleanUrls": true, + "trailingSlash": false + } +} \ No newline at end of file