2020-08-28 16:31:57 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Push output back to GitHub
|
|
|
|
|
2022-04-01 20:01:33 +00:00
|
|
|
# Exit script immediately if any command fails
|
|
|
|
set -e
|
|
|
|
|
|
|
|
cd output
|
|
|
|
git config --global user.email "actions@github.com"
|
|
|
|
git config --global user.name "GitHub Actions"
|
|
|
|
git add -A .
|
|
|
|
git commit --message "GitHub build: $GITHUB_RUN_NUMBER of $TW5_BUILD_BRANCH ($(date +'%F %T %Z'))"
|
2024-07-24 10:38:00 +00:00
|
|
|
git remote add deploy "https://$GH_TOKEN@github.com/TiddlyWiki/tiddlywiki.com-gh-pages.git" &>/dev/null
|
2022-04-01 20:01:33 +00:00
|
|
|
git push deploy master &>/dev/null
|
|
|
|
cd ..
|