-
Notifications
You must be signed in to change notification settings - Fork 309
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
1 parent
2bd52d9
commit a777dfc
Showing
4 changed files
with
132 additions
and
0 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,33 @@ | ||
name: PR Build | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [11] | ||
scala: [2.11.12, 2.12.16, 2.13.8] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
cache: 'sbt' | ||
- name: Build | ||
run: cat /dev/null | project/sbt ++${{ matrix.scala }} clean test doc | ||
check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' | ||
cache: 'sbt' | ||
- name: Build | ||
run: cat /dev/null | project/sbt checkLicenseHeaders scalafmtCheckAll |
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,37 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.[0-9]+.[0-9]+ | ||
- v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+ | ||
|
||
jobs: | ||
build: | ||
if: ${{ github.repository == 'Netflix/atlas' }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: 11 | ||
distribution: 'zulu' | ||
cache: 'sbt' | ||
- name: SetupPGP | ||
run: echo $ORG_SIGNING_KEY | sed -r 's/-----[^-]+-----//g;s/\n//g;s/ //g' | base64 --decode | gpg --batch --import | ||
env: | ||
ORG_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} | ||
- name: Build | ||
env: | ||
NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} | ||
NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} | ||
NETFLIX_OSS_SONATYPE_USERNAME: ${{ secrets.ORG_SONATYPE_USERNAME }} | ||
NETFLIX_OSS_SONATYPE_PASSWORD: ${{ secrets.ORG_SONATYPE_PASSWORD }} | ||
PGP_PASSPHRASE: ${{ secrets.ORG_SIGNING_PASSWORD }} | ||
run: | | ||
git fetch --unshallow --tags | ||
cat /dev/null | project/sbt ++2.11.12 clean test +publishSigned | ||
cat /dev/null | project/sbt ++2.12.16 clean test +publishSigned | ||
cat /dev/null | project/sbt ++2.13.8 clean test +publishSigned | ||
cat /dev/null | project/sbt sonatypeBundleRelease |
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,37 @@ | ||
name: Snapshot | ||
|
||
on: | ||
push: | ||
branches: | ||
- v1.6.x | ||
|
||
jobs: | ||
build: | ||
if: ${{ github.repository == 'Netflix/atlas' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
java: [11] | ||
scala: [2.11.12, 2.12.16, 2.13.8] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up JDK ${{ matrix.java }} | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
distribution: 'zulu' | ||
cache: 'sbt' | ||
- name: SetupPGP | ||
run: echo $ORG_SIGNING_KEY | sed -r 's/-----[^-]+-----//g;s/\n//g;s/ //g' | base64 --decode | gpg --batch --import | ||
env: | ||
ORG_SIGNING_KEY: ${{ secrets.ORG_SIGNING_KEY }} | ||
- name: Build | ||
env: | ||
NETFLIX_OSS_REPO_USERNAME: ${{ secrets.ORG_NETFLIXOSS_USERNAME }} | ||
NETFLIX_OSS_REPO_PASSWORD: ${{ secrets.ORG_NETFLIXOSS_PASSWORD }} | ||
NETFLIX_OSS_SONATYPE_USERNAME: ${{ secrets.ORG_SONATYPE_USERNAME }} | ||
NETFLIX_OSS_SONATYPE_PASSWORD: ${{ secrets.ORG_SONATYPE_PASSWORD }} | ||
PGP_PASSPHRASE: ${{ secrets.ORG_SIGNING_PASSWORD }} | ||
run: | | ||
git fetch --unshallow --tags | ||
cat /dev/null | project/sbt ++${{ matrix.scala }} clean test +publishSigned |
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,25 @@ | ||
import sbt._ | ||
import sbt.Keys._ | ||
import xerial.sbt.Sonatype._ | ||
import xerial.sbt.Sonatype.SonatypeKeys._ | ||
|
||
object SonatypeSettings { | ||
|
||
private def get(k: String): String = { | ||
sys.env.getOrElse(s"NETFLIX_OSS_SONATYPE_$k", s"missing$k") | ||
} | ||
|
||
private lazy val user = get("USERNAME") | ||
private lazy val pass = get("PASSWORD") | ||
|
||
lazy val settings: Seq[Def.Setting[_]] = sonatypeSettings ++ Seq( | ||
sonatypeProfileName := "com.netflix", | ||
sonatypeProjectHosting := Some(GitHubHosting("Netflix", "atlas", "[email protected]")), | ||
|
||
publishMavenStyle := true, | ||
licenses += ("APL2" -> url("https://www.apache.org/licenses/LICENSE-2.0.txt")), | ||
credentials += Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", user, pass), | ||
|
||
publishTo := sonatypePublishToBundle.value | ||
) | ||
} |