-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
200 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Check | ||
|
||
on: | ||
pull_request: # Check Pull Requests | ||
|
||
push: | ||
branches: | ||
- master # Check branch after merge | ||
|
||
concurrency: | ||
# Only run once for latest commit per ref and cancel other (previous) runs. | ||
group: ci-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
# Run Gradle Wrapper Validation to verify the wrapper's checksum | ||
gradle-validation: | ||
name: Gradle Wrapper | ||
runs-on: ubuntu-latest | ||
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 | ||
|
||
check: | ||
name: Check for Scala ${{ matrix.scala }} | ||
runs-on: ubuntu-latest | ||
needs: gradle-validation | ||
strategy: | ||
matrix: | ||
include: | ||
- scala: "2.11" | ||
lagom: "1.4.15" | ||
- scala: "2.12" | ||
lagom: "1.5.5" | ||
- scala: "2.13" | ||
lagom: "1.6.4" | ||
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: '8' | ||
check-latest: true | ||
cache: 'gradle' | ||
|
||
- name: Check | ||
run: >- | ||
./gradlew --no-daemon clean check | ||
-PscalaBinaryVersion=${{ matrix.scala }} -PlagomVersion=${{ matrix.lagom }} | ||
finish: | ||
name: Finish | ||
needs: # Should be last | ||
- "check" | ||
uses: taymyr/.github/.github/workflows/rtm.yml@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Publish Releases | ||
|
||
on: | ||
push: | ||
tags: ["**"] | ||
|
||
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.11" | ||
lagom: "1.4.15" | ||
- scala: "2.12" | ||
lagom: "1.5.5" | ||
- scala: "2.13" | ||
lagom: "1.6.4" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
# we don't know what commit the last tag was | ||
fetch-depth: 0 | ||
- run: git fetch --tags --force origin # WA: https://github.com/actions/checkout/issues/882 | ||
|
||
- uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'liberica' | ||
java-version: '8' | ||
check-latest: true | ||
cache: 'gradle' | ||
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
|
||
- name: Publish Releases | ||
run: >- | ||
./gradlew --no-daemon version publishToSonatype closeAndReleaseSonatypeStagingRepository -x test | ||
-PscalaBinaryVersion=${{ matrix.scala }} -PlagomVersion=${{ matrix.lagom }} | ||
-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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
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.11" | ||
lagom: "1.4.15" | ||
- scala: "2.12" | ||
lagom: "1.5.5" | ||
- scala: "2.13" | ||
lagom: "1.6.4" | ||
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: '8' | ||
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 }} -PlagomVersion=${{ matrix.lagom }} | ||
-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 }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionSha256Sum=9af5c8e7e2cd1a3b0f694a4ac262b9f38c75262e74a9e8b5101af302a6beadd7 | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -136,6 +136,7 @@ publishing { | |
} | ||
|
||
signing { | ||
useGpgCmd() | ||
isRequired = isReleaseVersion | ||
sign(publishing.publications["maven"]) | ||
} |