Skip to content

Commit

Permalink
Grace: update github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Mar 12, 2024
1 parent 5d62634 commit 5656626
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 10 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Grace CI
on:
push:
branches:
- 'release/2023.0.0-M2'
- 'release/2023.0.0-M3'
pull_request:
branches:
- 'release/2023.0.0-M2'
- 'release/2023.0.0-M3'
workflow_dispatch:
jobs:
build:
Expand All @@ -20,17 +20,13 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: Run Build
id: build
uses: gradle/gradle-build-action@v3
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
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 }}
with:
arguments: build -x test -x groovydoc -x codenarcMain -x codenarcTest -x checkstyleMain -x checkstyleTest
publish:
Expand All @@ -48,7 +44,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- master
- '[2020-2024]+.[0-9]+.x'
- 'release/2023.0.0-M2'
- 'release/2023.0.0-M3'
workflow_dispatch:
jobs:
release_notes:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: gradle/wrapper-validation-action@v2
- name: Set up JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/sdkman.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: SDKMAN Release

on:
release:
types: [published]

permissions: {}
jobs:
sdkman_release:
runs-on: ubuntu-22.04
strategy:
matrix:
java: ['17']
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.ref_name }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: ${{ matrix.java }}
- name: SDKMan release
uses: gradle/gradle-build-action@v3
with:
arguments: sdkManRelease
env:
SDKMAN_KEY: ${{ secrets.SDKMAN_KEY }}
SDKMAN_TOKEN: ${{ secrets.SDKMAN_TOKEN }}

0 comments on commit 5656626

Please sign in to comment.