Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 deploy to GitHub pages #4

Merged
merged 3 commits into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "weekly"

# github actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
31 changes: 22 additions & 9 deletions .github/workflows/static.yml → .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Deploy documentation content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

pull_request:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -30,14 +31,26 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies for documentation
run: pip install -r requirements-docs.txt
- name: Build site
run: mkdocs build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
- name: Upload artifact if on master
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
path: 'site'
- name: Deploy to GitHub Pages if on master
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v2
3 changes: 2 additions & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mkdocs==1.5.3
mkdocs-material==9.4.2
mkdocs-material==9.4.2
mkdocs-pdf-export-plugin==0.5.10