Skip to content

Commit

Permalink
Update Java CI Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Nov 24, 2023
1 parent 4a5e146 commit 73d28ac
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@ jobs:
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
with:
arguments: build -Dgeb.env=chromeHeadless
publish:
if: github.event_name == 'push'
needs: container-job
runs-on: ubuntu-latest
steps:
- uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: 11
- name: Publish Artifacts (repo.grails.org)
id: publish
uses: gradle/gradle-build-action@v2
if: steps.build.outcome == 'success' && github.event_name == 'push'
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
Expand All @@ -51,7 +59,7 @@ jobs:
arguments: -Dorg.gradle.internal.publish.checksums.insecure=true publish
- name: Build Docs
id: docs
if: steps.build.outcome == 'success' && github.event_name == 'push'
if: success()
uses: gradle/gradle-build-action@v2
with:
arguments: :grails-redis:groovydoc
Expand All @@ -60,7 +68,7 @@ jobs:
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
- name: Publish to Github Pages
if: steps.docs.outcome == 'success' && github.event_name == 'push'
if: success()
uses: grails/[email protected]
env:
TARGET_REPOSITORY: ${{ github.repository }}
Expand Down

0 comments on commit 73d28ac

Please sign in to comment.