Skip to content

Update Play to 3.0.5 (was 2.8.x) #2

Update Play to 3.0.5 (was 2.8.x)

Update Play to 3.0.5 (was 2.8.x) #2

name: Publish Snapshots
on:
push:
branches:
- master
jobs:
# Run Gradle Wrapper Validation to verify the wrapper's checksum
gradle-validation:
name: Gradle Wrapper
runs-on: ubuntu-latest
if: github.repository_owner == 'taymyr'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was
fetch-depth: 0
- name: Gradle Wrapper Validation
uses: gradle/actions/wrapper-validation@v3
publish-artifacts:
name: Publish Artifacts for Scala ${{ matrix.scala }}
runs-on: ubuntu-latest
if: github.repository_owner == 'taymyr'
needs: gradle-validation
strategy:
matrix:
include:
- scala: "2.13"
- scala: "3"
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# we don't know what commit the last tag was
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: 'liberica'
java-version: '11'
check-latest: true
cache: 'gradle'
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Publish Snapshots
run: >-
./gradlew --no-daemon version publishToSonatype -x test
-PscalaBinaryVersion=${{ matrix.scala }}
-Psigning.gnupg.keyName=$GPG_KEY_ID
-Psigning.gnupg.passphrase="$GPG_PASSPHRASE"
-PsonatypeUsername="$OSSRH_USERNAME"
-PsonatypePassword="$OSSRH_TOKEN"
env:
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}