Skip to content

Commit 2fcc783

Browse files
committed
Now we're at “Fix CI 14”
1 parent 8024f1c commit 2fcc783

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/docs.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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::

0 commit comments

Comments
 (0)