Skip to content

Commit

Permalink
use setup-java instead of deprecated olafurpg/setup-scala (#770)
Browse files Browse the repository at this point in the history
use setup-java instead of deprecated olafurpg/setup-scala
  • Loading branch information
xuwei-k authored Oct 19, 2023
1 parent bb16a92 commit 89391fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ jobs:
# Fetch all tags so that sbt-dynver can find the previous release version
- run: git fetch --tags -f
# Install OpenJDK 8
- uses: olafurpg/setup-scala@v10
- uses: actions/setup-java@v3
with:
# We need to use JDK8 for Android compatibility https://github.com/msgpack/msgpack-java/issues/516
java-version: adopt@1.8
java-version: 8
distribution: adopt
- name: Setup GPG
env:
PGP_SECRET: ${{ secrets.PGP_SECRET }}
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ jobs:
fetch-depth: 10000
# Fetch all tags so that sbt-dynver can find the previous release version
- run: git fetch --tags
- uses: olafurpg/setup-scala@v10
- uses: actions/setup-java@v3
with:
java-version: adopt@1.11
java-version: 11
distribution: adopt
- name: Publish snapshots
env:
SONATYPE_USERNAME: '${{ secrets.SONATYPE_USER }}'
Expand Down

0 comments on commit 89391fc

Please sign in to comment.