From bced0fceeb691e3ecef1f4b62c198edf8d137484 Mon Sep 17 00:00:00 2001 From: Adam Fekete Date: Fri, 7 Jun 2024 14:28:20 +0200 Subject: [PATCH] fixing docs deployment --- .github/workflows/docs.yml | 20 ++++++++++++++++++++ .github/workflows/mkdocs-deploy.yml | 24 ------------------------ 2 files changed, 20 insertions(+), 24 deletions(-) create mode 100644 .github/workflows/docs.yml delete mode 100644 .github/workflows/mkdocs-deploy.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 0000000..0263445 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,20 @@ +name: mkdocs-deploy + +on: + push: + branches: + - main # Triggers deployment on push to the main branch + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.9 + - run: pip install '.[docs]' + - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml deleted file mode 100644 index c46ff23..0000000 --- a/.github/workflows/mkdocs-deploy.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Deploy MkDocs Site - -on: - push: - branches: - - main # Triggers deployment on push to the main branch - -permissions: - contents: write - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repository - uses: actions/checkout@v4 - - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CONFIG_FILE: mkdocs.yml - REQUIREMENTS: requirements_docs.txt