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 8778642
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 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
11 changes: 5 additions & 6 deletions project/Settings.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ object Settings {

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 +25,13 @@ 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),
pgpPassphrase := sys.env.get("PGP_PASSPHRASE").map(_.toArray),
pgpPublicRing := file("/tmp/public.asc"),
pgpSecretRing := file("/tmp/secret.asc"),
resolvers +=
"Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
sonatypeCredentialHost := Sonatype.sonatype01
)
)
)
Expand Down

0 comments on commit 8778642

Please sign in to comment.