Skip to content

Commit

Permalink
use java17 in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jj22ee committed Mar 18, 2024
1 parent 96428c5 commit ce8a216
Showing 1 changed file with 32 additions and 31 deletions.
63 changes: 32 additions & 31 deletions .github/workflows/master-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
java:
- 8
- 11
- 17
include:
- os: ubuntu-latest
java: 11
Expand Down Expand Up @@ -59,34 +60,34 @@ jobs:
name: coverage-report
path: jacoco/build/reports/jacoco/codeCoverageReport/html

publish:
name: Publish snapshots
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Setup java
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Gradle Modules
uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: gradle-caches-${{ hashFiles('**/*.gradle.kts') }}
- name: Cache Gradle Wrapper
uses: actions/cache@v1
with:
path: ~/.gradle/wrapper
key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
- name: Execute Gradle publish
run: ./gradlew snapshot --stacktrace --info
shell: bash
env:
CI: true
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
# publish:
# name: Publish snapshots
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Checkout Repository
# uses: actions/checkout@v1
# - name: Setup java
# uses: actions/setup-java@v1
# with:
# java-version: 11
# - name: Cache Gradle Modules
# uses: actions/cache@v1
# with:
# path: ~/.gradle/caches
# key: gradle-caches-${{ hashFiles('**/*.gradle.kts') }}
# - name: Cache Gradle Wrapper
# uses: actions/cache@v1
# with:
# path: ~/.gradle/wrapper
# key: gradle-wrapper-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }}
# - name: Execute Gradle publish
# run: ./gradlew snapshot --stacktrace --info
# shell: bash
# env:
# CI: true
# SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
# SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
# GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
# GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
# GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}

0 comments on commit ce8a216

Please sign in to comment.