Added JAVA_OPTS as an env variable to allow additional customization … #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync docs | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
sync-gh-pages-doc: | |
name: Sync pages | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Update doc | |
run: | | |
cp -R docs /tmp/docs | |
git checkout gh-pages | |
rm -rf docs | |
mv /tmp/docs docs | |
if [ -z "$(git status --porcelain)" ]; then | |
echo "Git directory is clean, nothing changed" | |
git status | |
exit 0 | |
fi | |
git add -A | |
git commit -m "Update docs" | |
git pull --rebase origin gh-pages | |
git push origin gh-pages |