Skip to content

Commit 2f55c0a

Browse files
authored
Merge branch 'main' into fix-shebang-partition-3725
2 parents e046b0a + 8298cc0 commit 2f55c0a

File tree

20 files changed

+1020
-967
lines changed

20 files changed

+1020
-967
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1673,13 +1673,18 @@ jobs:
16731673
run: .github/scripts/gpg-setup.sh
16741674
env:
16751675
PGP_SECRET: ${{ secrets.PGP_SECRET }}
1676-
- run: ./mill -i ci.setShouldPublish
1677-
- run: ./mill -i publishSonatype --tasks '{__[],_,test-runner[2.13.16],test-runner[2.12.20],runner[2.13.16],runner[2.12.20]}.publishArtifacts'
1676+
- name: Set publish flag
1677+
run: ./mill -i ci.setShouldPublish
1678+
- name: Print version
1679+
run: ./mill -i show project.publish.finalPublishVersion
1680+
- name: Publish to Sonatype Central
1681+
run: ./mill mill.scalalib.SonatypeCentralPublishModule/ --publishArtifacts '{__[],_,test-runner[2.13.16],test-runner[2.12.20],runner[2.13.16],runner[2.12.20]}.publishArtifacts'
16781682
if: env.SHOULD_PUBLISH == 'true'
16791683
env:
1680-
PGP_PASSWORD: ${{ secrets.PGP_PASSPHRASE }}
1681-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
1682-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
1684+
MILL_PGP_SECRET_BASE64: ${{ secrets.PGP_SECRET }}
1685+
MILL_PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
1686+
MILL_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
1687+
MILL_SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
16831688
- uses: webfactory/ssh-agent@a6f90b1f127823b31d4d4a8d96047790581349bd
16841689
with:
16851690
ssh-private-key: |

build.mill.scala

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ object cliBootstrapped extends ScalaCliPublishModule {
7272

7373
import mill.scalalib.Assembly
7474

75+
override def prependShellScript: T[String] = Task("")
76+
7577
override def mainClass: Target[Option[String]] = Some("scala.cli.ScalaCli")
7678

7779
override def assemblyRules: Seq[Assembly.Rule] = Seq(
@@ -1344,6 +1346,11 @@ object `local-repo` extends LocalRepo {
13441346

13451347
// Helper CI commands
13461348
def publishSonatype(tasks: mill.main.Tasks[PublishModule.PublishData]) = Task.Command {
1349+
val taskNames = tasks.value.map(_.toString())
1350+
System.err.println(
1351+
s"""Tasks producing artifacts to be included in the bundle:
1352+
| ${taskNames.mkString("\n ")}""".stripMargin
1353+
)
13471354
val pv = finalPublishVersion()
13481355
System.err.println(s"Publish version: $pv")
13491356
val bundleName = s"$organization-$ghName-$pv"

0 commit comments

Comments
 (0)