Skip to content

Commit

Permalink
update website script
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Dec 15, 2020
1 parent cd81777 commit e9962b5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/publish-gh-pages
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -e
set -ex

echo "About to publish $GITHUB_REF to gh-pages..."

Expand All @@ -23,7 +23,8 @@ mv new-index.md index.md

if [[ `git status --porcelain` ]]; then
echo "Changes detected. Updating gh-pages branch..."
git commit -am "updated by ajv workflow https://github.com/ajv-validator/ajv/actions/runs/$GITHUB_RUN_ID"
git add -A
git commit -m "updated by ajv workflow https://github.com/ajv-validator/ajv/actions/runs/$GITHUB_RUN_ID"
git push --quiet origin gh-pages > /dev/null 2>&1
fi

Expand Down

0 comments on commit e9962b5

Please sign in to comment.