From 0f6ddbbe59e412a8477ce7cac8362c167aa2c429 Mon Sep 17 00:00:00 2001 From: chrwm <54852694+chrwm@users.noreply.github.com> Date: Wed, 20 Mar 2024 10:22:12 +0100 Subject: [PATCH] Create build_and_deploy_documentation.yml --- .../build_and_deploy_documentation.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build_and_deploy_documentation.yml diff --git a/.github/workflows/build_and_deploy_documentation.yml b/.github/workflows/build_and_deploy_documentation.yml new file mode 100644 index 0000000..d129651 --- /dev/null +++ b/.github/workflows/build_and_deploy_documentation.yml @@ -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