Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
- package-ecosystem: gradle
directory: "/"
schedule:
Expand Down
26 changes: 17 additions & 9 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,11 @@ jobs:
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
run: ./gradlew docs
- name: "🚀 Publish to Github Pages"
if: steps.docs.outcome == 'success'
uses: grails/grails-github-actions/deploy-github-pages@main
uses: apache/grails-github-actions/deploy-github-pages@asf
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GRADLE_PUBLISH_RELEASE: 'false'
Expand All @@ -162,9 +160,19 @@ jobs:
run: echo "value={\"message\":\"New Data Mapping Snapshots $(date) - $GITHUB_SHA\"}" >> $GITHUB_OUTPUT
- name: "📡 Invoke the Java CI workflow in GORM Hibernate6"
continue-on-error: true
uses: benc-uk/workflow-dispatch@e2e5e9a103e331dad343f381a29e654aea3cf8fc # v1.2.4 (Use commit sha as this is a 3rd party action)
uses: actions/github-script@v7
with:
workflow: Java CI
repo: grails/gorm-hibernate6
ref: ${{ steps.extract_branch.outputs.value }}
token: ${{ secrets.GH_TOKEN }}
github-token: ${{ secrets.GH_TOKEN }} # must be a PAT since we're triggering on an external repo
script: |
try {
const result = await github.rest.actions.createWorkflowDispatch({
owner: 'apache',
repo: 'grails-data-hibernate6',
workflow_id: 'gradle.yml',
ref: '${{ steps.extract_branch.outputs.value }}'
});
console.log(result);
} catch(error) {
console.error(error);
core.setFailed(error);
}
27 changes: 7 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,16 @@ name: "Release"
on:
release:
types: [published]
env:
GIT_USER_NAME: grails-build
GIT_USER_EMAIL: [email protected]
permissions:
contents: write
packages: read
jobs:
publish:
name: "Publish to Sonatype Staging Repository"
outputs:
release_version: ${{ steps.release_version.outputs.value }}
target_branch: ${{ steps.extract_branch.outputs.value }}
runs-on: ubuntu-24.04
permissions:
contents: write
packages: read
steps:
- name: "📥 Checkout repository"
uses: actions/checkout@v4
Expand All @@ -28,7 +25,7 @@ jobs:
with:
develocity-access-key: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- name: "⚙️ Run pre-release"
uses: grails/github-actions/pre-release@main
uses: apache/grails-github-actions/pre-release@asf
- name: "🔍 Determine Target Branch"
id: extract_branch
run: |
Expand All @@ -40,13 +37,11 @@ jobs:
id: release_version
run: echo "value=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
- name: "🧩 Run Assemble"
if: success()
id: assemble
env:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew --refresh-dependencies assemble
run: ./gradlew assemble
- name: "📤 Upload Distribution to workflow summary page"
if: success()
uses: actions/upload-artifact@v4
with:
name: grails-data-mapping-${{ steps.release_version.outputs.value }}.zip
Expand Down Expand Up @@ -76,9 +71,6 @@ jobs:
name: "Release Sonatype Staging Repository"
needs: publish
runs-on: ubuntu-24.04
permissions:
contents: write
packages: read
steps:
- name: "📥 Checkout repository"
uses: actions/checkout@v4
Expand Down Expand Up @@ -106,16 +98,12 @@ jobs:
findSonatypeStagingRepository
releaseSonatypeStagingRepository
- name: "⚙️ Run post-release"
if: success()
uses: grails/github-actions/post-release@main
uses: apache/grails-github-actions/post-release@asf
docs:
environment: release
name: "Publish Documentation"
needs: publish
runs-on: ubuntu-24.04
permissions:
contents: write
packages: read
steps:
- name: "📥 Checkout repository"
uses: actions/checkout@v4
Expand All @@ -135,8 +123,7 @@ jobs:
GITHUB_MAVEN_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew docs
- name: "🚀 Publish to Github Pages"
if: success()
uses: grails/grails-github-actions/deploy-github-pages@main
uses: apache/grails-github-actions/deploy-github-pages@asf
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GRADLE_PUBLISH_RELEASE: 'true'
Expand Down
Loading