From b2dd870eee0e8b464328ffe1a09d069c2e4279c0 Mon Sep 17 00:00:00 2001 From: Rodja Trappe Date: Sat, 27 Apr 2024 14:12:35 +0200 Subject: [PATCH] first step to publish docs automatically --- .github/workflows/publish.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..527e56c3 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,31 @@ +name: Upload Python Package + +on: push + +# on: +# workflow_dispatch: +# push: +# tags: +# - v** + +jobs: + docs: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: "3.11" + - name: Install dependencies + run: | + python3 -m pip install -r mkdocs_requirements.txt + python3 -m pip install -e . + - name: Build docs + run: mkdocs build -v + - name: Deploy gh-pages + uses: JamesIves/github-pages-deploy-action@v4.2.5 + with: + branch: gh-pages + folder: site