Skip to content

Commit

Permalink
fix(CI): Fix docs branch filter for release
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbo2002 committed Nov 15, 2020
1 parent 268317e commit 71b6879
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

npx tsc

branch=$(git rev-parse --abbrev-ref HEAD)
branch=${GITHUB_REF#refs/heads/}
folder="./gh-pages/${branch}"
if [ $branch != "develop" ] && [ $branch != "main" ]; then
echo "Skip documentation as branch is not develop and not main.";
echo "Skip documentation as branch is not develop and not main (is: ${branch}).";
exit 0;
fi;

Expand Down

0 comments on commit 71b6879

Please sign in to comment.