From 01b26b1d007ebcb347841c9c02b368f0be1a6847 Mon Sep 17 00:00:00 2001 From: Asher Pembroke Date: Mon, 13 Nov 2023 20:01:16 -0600 Subject: [PATCH] deployment workflow --- .github/workflows/mkdocs-deploy.yml | 29 +++++++++++++++++++++++++++++ mkdocs.yml | 3 +++ 2 files changed, 32 insertions(+) create mode 100644 .github/workflows/mkdocs-deploy.yml diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml new file mode 100644 index 00000000..25474732 --- /dev/null +++ b/.github/workflows/mkdocs-deploy.yml @@ -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 + diff --git a/mkdocs.yml b/mkdocs.yml index 877ee887..b4235f2f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -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