Skip to content

Commit 5b6a2b7

Browse files
committed
Avoid publishing snapshot documentation if there are none.
1 parent fb54ef9 commit 5b6a2b7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ jobs:
5959
MAVEN_PUBLISH_URL: ${{ secrets.MAVEN_PUBLISH_SNAPSHOT_URL }}
6060
run: ./gradlew publish
6161
- name: "📖 Generate Snapshot Documentation"
62+
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
6263
run: ./gradlew docs
6364
- name: "📤 Publish Snapshot Documentation to Github Pages"
6465
uses: apache/grails-github-actions/deploy-github-pages@asf
66+
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
6567
env:
6668
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6769
GRADLE_PUBLISH_RELEASE: 'false'

0 commit comments

Comments
 (0)