From 427738f35bf7f464847a38bac20af05b628b1369 Mon Sep 17 00:00:00 2001 From: Evan Sultanik Date: Fri, 15 May 2020 16:18:06 -0400 Subject: [PATCH] Only update the latest docs on push to master --- .github/workflows/publish_docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml index 813efe1..f2afe05 100644 --- a/.github/workflows/publish_docs.yml +++ b/.github/workflows/publish_docs.yml @@ -49,9 +49,9 @@ jobs: git config --local user.email "action@github.com" git config --local user.name "GitHub Action" git add . - if [ "$GITHUB_REF" != "refs/heads/master" ]; then + if [ "$GITHUB_REF" == "refs/heads/master" ]; then cd .. - # This is a tag; assume it is the latest and update accordingly + # This is not tag, so it is the latest: rm -f latest ln -s ${VERSION} latest git add latest