make sure to run git configs after we cd to the gh-pages directory, not before

This commit is contained in:
Nick Minkler (Sleaker) 2020-08-02 14:38:11 -07:00
parent 7a4d86c110
commit ea40092989
1 changed files with 2 additions and 2 deletions

View File

@ -24,10 +24,10 @@ jobs:
# mvn -B deploy
- name: Commit javadocs
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
cp -Rfv target/javadoc-latest/* gh-pages/
cd gh-pages
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git commit -m "Update javadoc pages for latest release" -a
- name: Push javadoc changes
uses: ad-m/github-push-action@master