Skip to content

Commit

Permalink
Create build_and_deploy_documentation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
chrwm authored Mar 20, 2024
1 parent 280ff2f commit 0f6ddbb
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_and_deploy_documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Deploy mkdocs on GitHub pages

on:
workflow_dispatch:
push:
branches:
- main

permissions:
contents: write
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.x

- name: Install Dependencies
run: pip install --upgrade -r requirements.txt

- name: Build MkDocs
run: mkdocs build

- name: Deployment
- uses: actions/cache@v2
with:
key: ${{ github.ref }}
path: .cache

- run: mkdocs gh-deploy --force

0 comments on commit 0f6ddbb

Please sign in to comment.