File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -40,12 +40,27 @@ jobs:
4040 PROJECT_NAME_LOWER=${PROJECT_NAME,,}
4141
4242 # Create dir if needed, cleanup old doc and copy new one
43+ echo ::group::Copying files to website repository
4344 mkdir -p web/static/docs/
4445 rm -rf web/static/docs/$PROJECT_NAME_LOWER
4546 cp -r target/site/apidocs web/static/docs/$PROJECT_NAME_LOWER
47+ echo ::endgroup::
4648
47- # Add, commit & push
49+ # Go to website repository
4850 cd web
51+
52+ # Configure git to push to this repository
53+ git config --global user.name QuartzBot
54+ git config --global user.email moriplay@zcraft.fr
55+ git config --global user.password ${{ secrets.QUARTZ_BOT_TOKEN }}
56+
57+ # Add files
58+ echo ::group::Adding files to website repository & creating commit
4959 git add .
5060 git commit -m "Updated documentation for $PROJECT_NAME"
61+ echo ::endgroup::
62+
63+ # Push
64+ echo ::group::Pushing
5165 git push
66+ echo ::endgroup::
You can’t perform that action at this time.
0 commit comments