diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1fff466..398735f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -117,4 +117,9 @@ jobs: tar xf targets.tar rm targets.tar - - run: sbt ++${{ matrix.scala }} ci-release \ No newline at end of file + - env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + run: sbt ++${{ matrix.scala }} ci-release \ No newline at end of file diff --git a/build.sbt b/build.sbt index 1a27c57..699c24f 100644 --- a/build.sbt +++ b/build.sbt @@ -53,7 +53,17 @@ inThisBuild( githubWorkflowJavaVersions := Seq("adopt@1.11"), githubWorkflowTargetTags ++= Seq("v*"), githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v"))), - githubWorkflowPublish := Seq(WorkflowStep.Sbt(List("ci-release"))), + githubWorkflowPublish := Seq( + WorkflowStep.Sbt( + List("ci-release"), + env = Map( + "PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}", + "PGP_SECRET" -> "${{ secrets.PGP_SECRET }}", + "SONATYPE_PASSWORD" -> "${{ secrets.SONATYPE_PASSWORD }}", + "SONATYPE_USERNAME" -> "${{ secrets.SONATYPE_USERNAME }}" + ) + ) + ), scalaVersion := scala213, crossScalaVersions := Seq(scala213, scala212) )