From 2cd232f527e45e2605f03b2ed6953872334bfed4 Mon Sep 17 00:00:00 2001 From: zklaschka Date: Fri, 15 Dec 2023 12:21:30 +0100 Subject: [PATCH] TELESTION-446 Add GitHub action to publish Add the GH Actions workflow file, already specifying the custom domain. The workflow pushes the site to the `gh-pages` branch. --- .github/workflows/docs.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..d803b441 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,22 @@ +name: Deploy docs to GitHub Pages + +on: + push: + branches: + - main + +jobs: + deploy: + name: Deploy docs + runs-on: ubuntu-latest + steps: + - name: Checkout main + uses: actions/checkout@v2 + - name: Deploy docs + uses: mhausenblas/mkdocs-deploy-gh-pages@1.26 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + CUSTOM_DOMAIN: docs.telestion.wuespace.de + CONFIG_FILE: docs/mkdocs.yml + EXTRA_PACKAGES: build-base + REQUIREMENTS: docs/requirements.txt \ No newline at end of file