Skip to content

Commit

Permalink
Only update the latest docs on push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
ESultanik committed May 15, 2020
1 parent dbe28b9 commit 427738f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ jobs:
git config --local user.email "[email protected]"
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
Expand Down

0 comments on commit 427738f

Please sign in to comment.