Skip to content

Commit

Permalink
chore: reduce redundant code in main workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
leviem1 committed Dec 14, 2023
1 parent 7fb5d31 commit 9fc1353
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,10 @@ jobs:
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK
uses: actions/setup-java@v3
- name: Common Setup
uses: ./.github/actions/common-setup
with:
java-version: ${{ matrix.java }}
distribution: 'zulu'

- name: Grant execute permission for gradlew
if: runner.os == 'Linux'
run: chmod +x gradlew

- name: Test with Gradle
run: ./gradlew check --debug
Expand Down Expand Up @@ -125,14 +120,10 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK
uses: actions/setup-java@v3
- name: Common Setup
uses: ./.github/actions/common-setup
with:
java-version: 17
distribution: 'zulu'

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Publish with Gradle
run: ./gradlew -Pver=${{ env.RELEASE_TAG }} release
Expand Down

0 comments on commit 9fc1353

Please sign in to comment.