Skip to content

Commit

Permalink
deployment workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
asherp committed Nov 14, 2023
1 parent c47f6de commit 01b26b1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/mkdocs-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy MkDocs Site

on:
push:
branches:
- main # Set this to the branch you want to trigger the deployment

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Set up the python version

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build and deploy
run: |
mkdocs build --verbose
mkdocs gh-deploy --force
3 changes: 3 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
site_name: Silas Maths

repo_name: Silas Maths
repo_url: https://github.com/asherp/silas

nav:
- Home: README.md
- Calculus: derivatives.md
Expand Down

0 comments on commit 01b26b1

Please sign in to comment.