Skip to content

Commit 4da6693

Browse files
authored
Merge pull request #1932 from grails/switchGithubPages
Switch to grails/grails-github-actions/deploy-github-pages@main
2 parents 5da65ad + 582e937 commit 4da6693

File tree

2 files changed

+10
-18
lines changed

2 files changed

+10
-18
lines changed

.github/workflows/gradle.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@ on:
66
pull_request:
77
branches:
88
- '[7-9]+.[0-9]+.x'
9-
env:
10-
GIT_USER_NAME: grails-build
11-
GIT_USER_EMAIL: [email protected]
129
jobs:
1310
build:
1411
name: "Build Project"
@@ -90,15 +87,13 @@ jobs:
9087
env:
9188
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
9289
run: ./gradlew docs --refresh-dependencies
93-
- name: "📤 Publish docs to Github Pages"
90+
- name: "🚀 Publish to Github Pages"
9491
if: steps.docs.outcome == 'success'
95-
uses: grails/github-pages-deploy-action@v2
92+
uses: grails/grails-github-actions/deploy-github-pages@main
9693
env:
97-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
98-
BRANCH: gh-pages
99-
FOLDER: build/docs
100-
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
101-
COMMIT_NAME: ${{ env.GIT_USER_NAME }}
94+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
95+
GRADLE_PUBLISH_RELEASE: 'false'
96+
SOURCE_FOLDER: build/docs
10297
trigger-build-gorm-impls:
10398
if: github.event_name == 'push'
10499
name: "Trigger Build in GORM Implementations"

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,11 @@ jobs:
134134
env:
135135
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
136136
run: ./gradlew docs
137-
- name: "📤 Publish documentation to Github Pages"
137+
- name: "🚀 Publish to Github Pages"
138138
if: success()
139-
uses: grails/github-pages-deploy-action@grails
139+
uses: grails/grails-github-actions/deploy-github-pages@main
140140
env:
141-
BETA: ${{ contains(needs.publish.outputs.release_version, 'M') || contains(needs.publish.outputs.release_version, 'RC') }}
142-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
143-
BRANCH: gh-pages
144-
FOLDER: build/docs
141+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
142+
GRADLE_PUBLISH_RELEASE: 'true'
143+
SOURCE_FOLDER: build/docs
145144
VERSION: ${{ needs.publish.outputs.release_version }}
146-
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
147-
COMMIT_NAME: ${{ env.GIT_USER_NAME }}

0 commit comments

Comments
 (0)