Skip to content

Commit

Permalink
Merge pull request #1872 from jdaugherty/9.0.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty authored Jan 28, 2025
2 parents c432a1e + eb23c32 commit 0a16122
Show file tree
Hide file tree
Showing 79 changed files with 2,507 additions and 31 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches:
- '[7-9]+.[0-9]+.x'
env:
GIT_USER_NAME: grails-build
GIT_USER_EMAIL: grails-build@users.noreply.github.com
jobs:
build:
name: "Build Project"
Expand Down Expand Up @@ -63,6 +66,39 @@ jobs:
# NOTE: secrets.MAVEN_PUBLISH_URL == https://repo.grails.org/grails/plugins3-snapshot-local
MAVEN_PUBLISH_URL: https://repo.grails.org/grails/libs-snapshots-local
run: ./gradlew --no-build-cache publish
docs:
if: github.event_name == 'push'
needs: publish
runs-on: ubuntu-24.04
permissions:
contents: write
packages: read
steps:
- name: "📥 Checkout the repository"
uses: actions/checkout@v4
- name: "☕️ Setup JDK"
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '17'
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "🔨 Build Docs"
id: docs
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew docs --refresh-dependencies
- name: "📤 Publish docs to Github Pages"
if: steps.docs.outcome == 'success'
uses: grails/github-pages-deploy-action@v2
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages
FOLDER: build/docs
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
COMMIT_NAME: ${{ env.GIT_USER_NAME }}
trigger-build-gorm-impls:
if: github.event_name == 'push'
name: "Trigger Build in GORM Implementations"
Expand Down Expand Up @@ -106,6 +142,7 @@ jobs:
token: ${{ secrets.GH_TOKEN }}
inputs: ${{ steps.dispatch_message.outputs.value }}
- name: "📡 Invoke the Java CI workflow in GORM Neo4j"
if: false # Skip until neo4j is ported to grails 7
continue-on-error: true
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action)
with:
Expand Down
39 changes: 26 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,31 @@ jobs:
contents: write
packages: read
steps:
- name: "📝 Create Message for the GORM Documentation Release"
id: gorm_docs_release_message
- name: "📥 Checkout repository"
uses: actions/checkout@v4
with:
ref: v${{ needs.publish.outputs.release_version }}
- name: "☕️ Setup JDK"
uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '17'
- name: "🐘 Setup Gradle"
uses: gradle/actions/setup-gradle@v4
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "📖 Generate documentation"
env:
RELEASE_VERSION: ${{ needs.publish.outputs.release_version }}
run: echo "value={\"gorm_version\":\"$RELEASE_VERSION\"}" >> $GITHUB_OUTPUT
- name: "📡 Invoke gorm-docs release workflow"
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew docs
- name: "📤 Publish documentation to Github Pages"
if: success()
id: gorm_docs
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action)
with:
workflow: Release
repo: grails/gorm-docs
ref: ${{ needs.publish.outputs.target_branch }}
token: ${{ secrets.GH_TOKEN }}
inputs: ${{ steps.gorm_docs_release_message.outputs.value }}
uses: grails/github-pages-deploy-action@grails
env:
BETA: ${{ contains(needs.publish.outputs.release_version, 'M') || contains(needs.publish.outputs.release_version, 'RC') }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
BRANCH: gh-pages
FOLDER: build/docs
VERSION: ${{ needs.publish.outputs.release_version }}
COMMIT_EMAIL: ${{ env.GIT_USER_EMAIL }}
COMMIT_NAME: ${{ env.GIT_USER_NAME }}
5 changes: 1 addition & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,4 @@ allprojects {
}
}

tasks.register('clean', Delete) {
group = 'build'
delete layout.buildDirectory
}
apply from: layout.projectDirectory.file('gradle/documentation-config.gradle')
1 change: 1 addition & 0 deletions docs/data-mapping-website/src/main/resources/css/book.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/data-mapping-website/src/main/resources/css/main.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0a16122

Please sign in to comment.