Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-guides/TRaSH-Guides/commit/f1a0149d66237de0c5693c2ba24e4d68f8aadcbc You should set ROOT_URL correctly, otherwise the web may not work correctly.

Rework deploy

Build (test) on every commit
Deploy only when pushing to master or main
Add build caching (speed up repeat builds)
pull/773/head
Eric Nemchik 3 years ago
parent fc234c0b3a
commit f1a0149d66

@ -1,12 +1,27 @@
name: Deploy docs to GitHub Pages via mkdocs
name: Build mkdocs and deploy to GitHub Pages
on:
push:
branches:
- master
on: [push, pull_request]
jobs:
build:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r docs/requirements.txt
- run: mkdocs build
deploy:
if: github.event_name == 'push' && contains(fromJson('["refs/heads/master", "refs/heads/main"]'), github.ref)
needs: build
name: Deploy docs
runs-on: ubuntu-latest
steps:
@ -16,5 +31,9 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: 3.x
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache
- run: pip install -r docs/requirements.txt
- run: mkdocs gh-deploy --force

3
.gitignore vendored

@ -1,4 +1,5 @@
venv/
.cache
venv/
mkdocs-dev-server.bat
/docs/Notifiarr/preview.bat
/docs/Notifiarr/Integrations/_TEMPLATE.md

Loading…
Cancel
Save