From 1fe16f7b2ee2660defc3b98a6546f2245e51f318 Mon Sep 17 00:00:00 2001 From: collerek Date: Mon, 9 Nov 2020 14:11:55 +0100 Subject: [PATCH] fix docs deploy to only push on master --- .github/workflows/deploy-docs.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index d788acd..1cbb31d 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,11 +1,7 @@ -name: Build Documentation using MkDocs -# Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the master branch +name: Build Documentation using MkDocs on: push: - branches: [master] - pull_request: - branches: [master] + branches: [master] jobs: build: name: Build and Deploy Documentation @@ -23,5 +19,5 @@ jobs: pip install mkdocs-material - name: Deploy run: | - git pull + git pull origin master mkdocs gh-deploy