Skip to content

Commit

Permalink
Test publish settings
Browse files Browse the repository at this point in the history
  • Loading branch information
danieletorelli committed May 10, 2024
1 parent 6212b0b commit e7be497
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 13 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
push:
branches: [main]
branches: [main, publishing]
release:
types:
- published
Expand Down Expand Up @@ -43,8 +43,7 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/checkout@v4
- name: Setup JDK ${{ matrix.java }}
- name: Setup JDK 21
uses: actions/setup-java@v4
with:
distribution: temurin
Expand Down
14 changes: 4 additions & 10 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ object Settings {
implicit final class ProjectSettings(project: sbt.Project) {

def publishSettings: sbt.Project = {
import com.jsuereth.sbtpgp.PgpKeys.*
import xerial.sbt.Sonatype
import xerial.sbt.Sonatype.autoImport.*

project.settings(
inThisBuild(
Expand All @@ -23,16 +24,9 @@ object Settings {
"danieletorelli",
"Daniele Torelli",
"[email protected]",
url("https://mdtorelli.it")
url("https://github.com/danieletorelli")
)
),
resolvers +=
"Sonatype OSS Snapshots 01" at "https://s01.oss.sonatype.org/content/repositories/snapshots",
pgpPassphrase := sys.env.get("PGP_PASSWORD").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
)
)
)
)
Expand Down

0 comments on commit e7be497

Please sign in to comment.