Skip to content

Commit d083e6d

Browse files
authored
Merge pull request #401 from cquiroz/ci-release
Setup sbt-ci-release
2 parents 0d8812f + 93d2a9e commit d083e6d

File tree

6 files changed

+30
-55
lines changed

6 files changed

+30
-55
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14-
- uses: olafurpg/setup-scala@v10
14+
- uses: olafurpg/setup-scala@v12
1515
with:
1616
java-version: "[email protected]"
1717
- uses: coursier/cache-action@v5

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [master]
5+
tags: ["*"]
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: olafurpg/setup-scala@v12
12+
- uses: olafurpg/setup-gpg@v3
13+
- uses: coursier/cache-action@v5
14+
- name: Publish
15+
run: sbt clean ci-release
16+
env:
17+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
18+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
19+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
20+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
21+
CI_RELEASE: "; scalajs-bundler-linker/publishSigned; sbt-scalajs-bundler/publishSigned; sbt-web-scalajs-bundler/publishSigned"
22+
CI_SNAPSHOT_RELEASE: "; scalajs-bundler-linker/publish; sbt-scalajs-bundler/publish; sbt-web-scalajs-bundler/publish"
23+
24+

.travis.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

build.sbt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,6 @@ val `scalajs-bundler` =
9090
.aggregate(`sbt-scalajs-bundler`, `sbt-web-scalajs-bundler`)
9191

9292
inThisBuild(List(
93-
pgpPublicRing := file("./local.pubring.asc"),
94-
pgpSecretRing := file("./local.secring.asc"),
95-
pgpPassphrase := sys.env.get("PGP_PASS").map(_.toArray),
96-
credentials ++= (
97-
for {
98-
username <- sys.env.get("SONATYPE_USER")
99-
password <- sys.env.get("SONATYPE_PASSWORD")
100-
} yield Credentials("Sonatype Nexus Repository Manager", "oss.sonatype.org", username, password)
101-
).toList,
10293
scalacOptions ++= Seq(
10394
"-feature",
10495
"-deprecation",
@@ -124,7 +115,6 @@ inThisBuild(List(
124115
))
125116

126117
lazy val commonSettings = List(
127-
publishTo := sonatypePublishTo.value,
128118
scriptedLaunchOpts ++= Seq(
129119
"-Dplugin.version=" + version.value,
130120
s"-Dscalajs.version=$scalaJSVersion",

project/plugins.sbt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "2.3")
2-
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")
3-
addSbtPlugin("com.dwijnand" % "sbt-dynver" % "2.1.0")
4-
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
5-
addSbtPlugin("com.novocode" % "sbt-ornate" % "0.6")
6-
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3")
7-
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
1+
addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1")
2+
addSbtPlugin("com.novocode" % "sbt-ornate" % "0.6")
3+
addSbtPlugin("com.eed3si9n" % "sbt-unidoc" % "0.4.3")
4+
addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.10.0")
5+
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.6")
86

97
ivyLoggingLevel in ThisBuild := UpdateLogging.Quiet

travis/secrets.tar.enc

-20 KB
Binary file not shown.

0 commit comments

Comments
 (0)