Skip to content

Commit

Permalink
Update CI workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdAurora committed Feb 5, 2024
1 parent c190aee commit 4a2afac
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,27 @@ jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
- name: "Set up Java"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: 17
- name: Gradle Build and Test
uses: gradle/gradle-build-action@v2
with:
arguments: check build publish publishPlugins --stacktrace
- name: "Set up Gradle"
uses: gradle/actions/setup-gradle@v3
- name: "Gradle Build and Test"
run: ./gradlew check build publish publishPlugins --stacktrace
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.SIGNING_PGP_KEY_ID }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SIGNING_PGP_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SIGNING_PGP_PASSWORD }}
- uses: actions/upload-artifact@v4
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
with:
name: Artifacts
path: ./build/libs/
17 changes: 10 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,21 @@ jobs:
java: [17, 21]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: "Checkout"
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
- name: "Set up Java"
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ matrix.java }}
- name: Gradle Build and Test
uses: gradle/gradle-build-action@v2
with:
arguments: build check --stacktrace --parallel
- uses: actions/upload-artifact@v4
- name: "Set up Gradle"
uses: gradle/actions/setup-gradle@v3
- name: "Gradle Build and Test"
run: ./gradlew build check --stacktrace --parallel
- name: "Upload artifacts"
uses: actions/upload-artifact@v4
if: matrix.java == 17
with:
name: Artifacts
Expand Down

0 comments on commit 4a2afac

Please sign in to comment.