From 83fe6c5b12ca42feecc18210d8b9601cc55ee880 Mon Sep 17 00:00:00 2001 From: Real-MullaC Date: Mon, 19 Aug 2024 20:19:37 +0100 Subject: [PATCH] Auto pushes docs (#2580) --- .github/workflows/github-pages.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/github-pages.yaml b/.github/workflows/github-pages.yaml index b51697b8..f4d0ebb3 100644 --- a/.github/workflows/github-pages.yaml +++ b/.github/workflows/github-pages.yaml @@ -1,15 +1,16 @@ name: GitHub Pages Deploy on: - release: - types: [published, prereleased] + push: + paths: + - '.github/mkdocs.yml' + - '.github/requirements.txt' + - 'docs/**' + - 'overrides/**' workflow_dispatch: -permissions: - contents: write - jobs: - deploy: + build-and-deploy: runs-on: ubuntu-latest steps: @@ -22,10 +23,10 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.x # Install latest Stable release of Python 3 - cache: 'pip' # caching pip dependencies + cache: 'pip' # Caching pip dependencies - - name: Install Necessary Dependencies using 'pip install -r .github/requirements.txt' + - name: Install Necessary Dependencies run: pip install -r .github/requirements.txt - - name: Build & Deploy using 'mkdocs' - run: mkdocs gh-deploy --force -f .github/mkdocs.yml \ No newline at end of file + - name: Build & Deploy using mkdocs + run: mkdocs gh-deploy --force -f .github/mkdocs.yml