From b9040c5105ad70323efaa2f063af86994293254f Mon Sep 17 00:00:00 2001 From: collerek Date: Mon, 9 Nov 2020 14:13:05 +0100 Subject: [PATCH] fix docs deploy to only push on master --- .github/workflows/deploy-docs.yml | 36 +++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 1cbb31d..44fff5f 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,23 +1,23 @@ name: Build Documentation using MkDocs -on: - push: - branches: [master] -jobs: - build: - name: Build and Deploy Documentation - runs-on: ubuntu-latest - steps: - - name: Checkout Master - uses: actions/checkout@v2 - - name: Set up Python 3.7 - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: | +on: + push: + branches: [ master ] +jobs: + build: + name: Build and Deploy Documentation + runs-on: ubuntu-latest + steps: + - name: Checkout Master + uses: actions/checkout@v2 + - name: Set up Python 3.7 + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | python -m pip install --upgrade pip pip install mkdocs-material - - name: Deploy - run: | + - name: Deploy + run: | git pull origin master mkdocs gh-deploy