Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 9625a0e

Browse files
authored
Merge pull request #737 from grails/updateWorkflow
Update GitHub Workflow
2 parents c138952 + 6b2e5e9 commit 9625a0e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.github/workflows/gradle.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Publish to repo.grails.org
6464
id: publish
6565
uses: gradle/gradle-build-action@v2
66-
if: steps.build.outcome == 'success' && github.event_name == 'push' && matrix.java == '8'
66+
if: steps.build.outcome == 'success' && github.event_name == 'push' && matrix.java == '11'
6767
env:
6868
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
6969
GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
@@ -74,7 +74,7 @@ jobs:
7474
arguments: -Dorg.gradle.internal.publish.checksums.insecure=true publish
7575
- name: Build Docs
7676
id: docs
77-
if: steps.build.outcome == 'success' && github.event_name == 'push' && matrix.java == '8'
77+
if: steps.build.outcome == 'success' && github.event_name == 'push' && matrix.java == '11'
7878
uses: gradle/gradle-build-action@v2
7979
env:
8080
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
@@ -83,17 +83,18 @@ jobs:
8383
with:
8484
arguments: docs:docs
8585
- name: Determine docs target repository
86-
if: steps.docs.outcome == 'success' && github.event_name == 'push' && matrix.java == '8'
86+
if: steps.docs.outcome == 'success' && github.event_name == 'push' && matrix.java == '11'
8787
uses: haya14busa/action-cond@v1
8888
id: docs_target
8989
with:
9090
cond: ${{ github.repository == 'grails/gorm-hibernate5' }}
9191
if_true: "grails/grails-data-mapping"
9292
if_false: ${{ github.repository }}
9393
- name: Publish to Github Pages
94-
if: steps.docs.outcome == 'success' && github.event_name == 'push' && matrix.java == '8'
94+
if: steps.docs.outcome == 'success' && github.event_name == 'push' && matrix.java == '11'
9595
uses: micronaut-projects/github-pages-deploy-action@master
9696
env:
97+
SKIP_SNAPSHOT: ${{ contains(steps.release_version.outputs.release_version, 'M') }}
9798
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
9899
GH_TOKEN: ${{ secrets.GH_TOKEN }}
99100
BRANCH: gh-pages

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
java-version: ${{ matrix.java }}
2525
- name: Set the current release version
2626
id: release_version
27-
run: echo ::set-output name=release_version::${GITHUB_REF:11}
27+
run: echo "release_version=${GITHUB_REF:11}" >> $GITHUB_OUTPUT
2828
- name: Run pre-release
2929
uses: micronaut-projects/github-actions/pre-release@master
3030
with:
@@ -70,9 +70,9 @@ jobs:
7070
if_false: ${{ github.repository }}
7171
- name: Publish to Github Pages
7272
if: success()
73-
uses: micronaut-projects/github-pages-deploy-action@master
73+
uses: micronaut-projects/github-pages-deploy-action@grails
7474
env:
75-
BETA: ${{ contains(steps.release_version.outputs.release_version, 'M') || contains(steps.release_version.outputs.release_version, 'RC') }}
75+
SKIP_LATEST: ${{ contains(steps.release_version.outputs.release_version, 'M') }}
7676
TARGET_REPOSITORY: ${{ steps.docs_target.outputs.value }}
7777
GH_TOKEN: ${{ secrets.GH_TOKEN }}
7878
BRANCH: gh-pages

0 commit comments

Comments
 (0)