mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 23:39:57 +00:00
0ce1843070
Use the bash -e option to exit on any error, so || exit 1 is not needed. As a bonus, this lets us get the actual return code from any failures.
16 lines
459 B
Bash
Executable File
16 lines
459 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Push output back to GitHub
|
|
|
|
# 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'))"
|
|
git remote add deploy "https://$GH_TOKEN@github.com/Jermolene/jermolene.github.io.git" &>/dev/null
|
|
git push deploy master &>/dev/null
|
|
cd ..
|