File tree Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Expand file tree Collapse file tree 3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,19 @@ description: 'Deploy site to GitHub Pages'
4
4
runs :
5
5
using : ' composite'
6
6
steps :
7
- - name : Deploy Site
7
+ - uses : gradle/actions/setup-gradle@v4
8
+ with :
9
+ cache-read-only : true
10
+ - name : Prepare API documentation
11
+ shell : bash
12
+ run : ./gradlew dokkaHtml --no-configuration-cache
13
+ - name : Build Site
8
14
shell : bash
9
15
run : |
10
- git config --global user.name 'github-actions[bot]'
11
- git config --global user.email 'github-actions[bot]@users.noreply.github.com'
12
16
# Don't cache it to track updates.
13
17
pip install mkdocs-material
14
- # Incremental pushes, make sure gh-pages branch is fetched by checkout.
15
- mkdocs gh-deploy
18
+ mkdocs build
19
+ - uses : actions/upload-pages-artifact@v3
20
+ with :
21
+ path : site
22
+ - uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 14
14
with :
15
15
# Fetch all tags and branches, so that MkDocs could push incremental updates.
16
16
fetch-depth : 0
17
- - uses : gradle/actions/setup-gradle@v4
18
- with :
19
- cache-read-only : true
20
- # Prepare API documentations for MkDocs.
21
- - run : ./gradlew dokkaHtml --no-configuration-cache
22
17
- uses : ./.github/actions/deploy-site
Original file line number Diff line number Diff line change 24
24
with :
25
25
cache-read-only : true
26
26
# Disable CC due to https://github.com/gradle/gradle/issues/22779
27
- - run : ./gradlew publish publishPlugins dokkaHtml --no-configuration-cache
27
+ - run : ./gradlew publish publishPlugins --no-configuration-cache
28
28
env :
29
29
GRADLE_PUBLISH_KEY : ${{ secrets.GRADLE_KEY }}
30
30
GRADLE_PUBLISH_SECRET : ${{ secrets.GRADLE_SECRET }}
You can’t perform that action at this time.
0 commit comments