Skip to content

Commit 617237b

Browse files
authored
docs: add missing utils (#370)
1 parent 4ba0657 commit 617237b

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

docs/_utils/deploy.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
# Copy contents
4+
mkdir gh-pages
5+
cp -r ./docs/_build/dirhtml/. gh-pages
6+
7+
# Create gh-pages branch
8+
cd gh-pages
9+
git init
10+
git config --local user.email "[email protected]"
11+
git config --local user.name "GitHub Action"
12+
git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
13+
git checkout -b gh-pages
14+
15+
# Deploy
16+
git add .
17+
git commit -m "Publish docs" || true
18+
git push origin gh-pages --force

docs/_utils/javadoc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ fi
1414
mvn javadoc:javadoc -T 1C
1515
[ -d $OUTPUT_DIR ] && rm -r $OUTPUT_DIR
1616
mkdir -p "$OUTPUT_DIR"
17-
mv -f core/target/site/apidocs/* $OUTPUT_DIR
17+
mv -f driver-core/target/site/apidocs/* $OUTPUT_DIR

0 commit comments

Comments
 (0)