diff --git a/.github/scripts/on-pages.sh b/.github/scripts/on-pages.sh index 1b265f91..e4ef4f30 100644 --- a/.github/scripts/on-pages.sh +++ b/.github/scripts/on-pages.sh @@ -87,9 +87,15 @@ function git_safe_upload_to_pages(){ EVENT_JSON=`cat $GITHUB_EVENT_PATH` +echo "GITHUB_EVENT_PATH: $GITHUB_EVENT_PATH" +echo "EVENT_JSON: $EVENT_JSON" + pages_added=`echo "$EVENT_JSON" | jq -r '.commits[].added[]'` +echo "added: $pages_added" pages_modified=`echo "$EVENT_JSON" | jq -r '.commits[].modified[]'` +echo "modified: $pages_modified" pages_removed=`echo "$EVENT_JSON" | jq -r '.commits[].removed[]'` +echo "removed: $pages_removed" for page in $pages_added; do if [[ $page != "README.md" && $page != "docs/"* ]]; then diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index f111f3aa..adb0a590 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -4,9 +4,12 @@ on: push: branches: - master + - pages paths: - 'README.md' - 'docs/**' + - '.github/scripts/on-pages.sh' + - '.github/workflows/gh-pages.yml' jobs: