File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 2020 restore-keys : ${{ runner.os }}-m2
2121 - name : Build JavaDoc
2222 run : mvn -B javadoc:javadoc --file pom.xml
23- - name : Configure Git for push to website repository
24- run : |
25- git config --global user.name QuartzBot
26- git config --global user.email moriplay@zcraft.fr
27- git config --global user.password ${{ secrets.QUARTZ_BOT_TOKEN }}
2823 - name : Checkout website repository
2924 uses : actions/checkout@v2
3025 with :
4035 PROJECT_NAME_LOWER=${PROJECT_NAME,,}
4136
4237 # Create dir if needed, cleanup old doc and copy new one
43- echo ::group::Copying files to website repository
4438 mkdir -p web/static/docs/
4539 rm -rf web/static/docs/$PROJECT_NAME_LOWER
4640 cp -r target/site/apidocs web/static/docs/$PROJECT_NAME_LOWER
47- echo ::endgroup::
4841
4942 # Go to website repository
5043 cd web
@@ -55,12 +48,12 @@ jobs:
5548 git config --global user.password ${{ secrets.QUARTZ_BOT_TOKEN }}
5649
5750 # Add files
58- echo " ::group::Adding files to website repository & creating commit"
51+ echo ::group::Commit
5952 git add .
6053 git commit -m "Updated documentation for $PROJECT_NAME"
6154 echo ::endgroup::
6255
6356 # Push
64- echo ::group::Pushing
65- git push
57+ echo ::group::Push
58+ git push https://QuartzBot:${{ secrets.QUARTZ_BOT_TOKEN }}@github.com/zDevelopers/zdevelopers.github.io.git
6659 echo ::endgroup::
You can’t perform that action at this time.
0 commit comments