Skip to content

Commit 5ea171d

Browse files
committed
cache mvn, and do you know GNU cp is different from Mac (BSD) cp?
1 parent bea793c commit 5ea171d

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/build-docs-gh-pages.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,27 @@ jobs:
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: write
17-
# pull-requests: write
1817

1918
steps:
20-
# 1. Checkout doc branch
19+
# 1. Checkout current branch
2120
- name: Checkout current branch
2221
uses: actions/checkout@v4
2322

24-
# 2. Java 8
23+
# 2. Java 8 (with Maven cache)
2524
- name: Set up Java 8
2625
uses: actions/setup-java@v4
2726
with:
2827
distribution: temurin
2928
java-version: "8"
29+
cache: maven # <--- cache Maven deps (~/.m2/repository)
3030

31-
# 3. Python 3.10.19 + MkDocs + plugins
31+
# 3. Python 3.10.19
3232
- name: Set up Python 3.10.19
3333
uses: actions/setup-python@v5
3434
with:
3535
python-version: "3.10.19"
3636

37+
# 4. Install MkDocs dependencies
3738
- name: Install MkDocs dependencies
3839
run: |
3940
python -m pip install --upgrade pip
@@ -43,13 +44,13 @@ jobs:
4344
mkdocs-awesome-pages-plugin \
4445
mkdocs-macros-plugin
4546
46-
# 4. Build docs via build-doc.sh
47+
# 5. Build docs via build-doc.sh
4748
- name: Build documentation
4849
run: |
4950
chmod +x ./build-doc.sh
5051
./build-doc.sh
5152
52-
# 5. Upload built docs as a ZIP artifact
53+
# 6. Upload built docs as a ZIP artifact
5354
- name: Archive built documentation
5455
run: |
5556
zip -r docs-built.zip docs

.github/workflows/update-docs-staging.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
with:
2828
distribution: temurin
2929
java-version: "8"
30+
cache: maven # <--- cache Maven deps (~/.m2/repository)
3031

3132
# 3. Python 3.10.19 + MkDocs + plugins
3233
- name: Set up Python 3.10.19
@@ -63,7 +64,7 @@ jobs:
6364
run: |
6465
cp -r ../java-driver/docs ./docs/latest
6566
mkdocs build
66-
cp -r ./out/ . # because the index.html has to be in the root folder
67+
cp -r ./out/. . # because the index.html has to be in the root folder
6768
6869
- name: Commit and push to gh-pages-staging
6970
working-directory: gh-pages-staging

0 commit comments

Comments
 (0)