Skip to content

Commit 8bf7337

Browse files
committed
Adjusting release and gradle CI files
1 parent fee585d commit 8bf7337

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/gradle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,10 @@ jobs:
5959
MAVEN_PUBLISH_URL: 'https://repo.grails.org/artifactory/plugins3-snapshots-local'
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"
65+
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
6466
uses: apache/grails-github-actions/deploy-github-pages@asf
6567
env:
6668
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,10 @@ jobs:
118118
findSonatypeStagingRepository
119119
releaseSonatypeStagingRepository
120120
- name: "📖 Generate Documentation"
121+
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
121122
run: ./gradlew docs
122123
- name: "📤 Publish Documentation to Github Pages"
124+
if: ${{ hashFiles('src/main/asciidoc/**') != '' }}
123125
uses: apache/grails-github-actions/deploy-github-pages@asf
124126
env:
125127
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)