-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b66391f
commit 132787d
Showing
3 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "monthly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: 📖 Build MKDocs And Publish To Github Pages.yml | ||
on: | ||
push: | ||
branches: | ||
- main | ||
# Allow manually running in the actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Install dependencies | ||
uses: BSFishy/pip-action@v1 | ||
with: | ||
packages: | | ||
mkdocs-material | ||
qrcode | ||
- name: Checkout main from github | ||
uses: actions/checkout@v4 | ||
- name: Create Mkdocs Config 🚀 | ||
working-directory: ./docs | ||
run: ./create-mkdocs-html-config.sh | ||
- name: Deploy docs to github pages | ||
# This is where we get the material theme from | ||
uses: mhausenblas/mkdocs-deploy-gh-pages@master | ||
# Wrong | ||
#uses: timlinux/QGISAnimationWorkbench@main | ||
env: | ||
# Read this carefully: | ||
# https://github.com/marketplace/actions/deploy-mkdocs#building-with-github_token | ||
# The token is automatically generated by the GH Action | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CONFIG_FILE: docs/mkdocs.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Publish docs via GitHub Pages | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Deploy docs | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v4 | ||
|
||
- name: Create Mkdocs Config 🚀 | ||
working-directory: ./docs | ||
run: ./create-mkdocs-html-config.sh | ||
|
||
- name: Deploy docs | ||
uses: mhausenblas/mkdocs-deploy-gh-pages@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CONFIG_FILE: /docs/mkdocs.yml | ||
EXTRA_PACKAGES: build-base |