Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ jobs:
./mill __.checkStyle + __.test + __.publishLocal
- name: Publish
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v') || github.event_name == 'release'
run: |
echo "${{secrets.pgp_secret_key}}" > private.key
gpg --batch --yes --import private.key
rm private.key

./mill mill.scalalib.PublishModule/ --sonatypeCreds ${{secrets.sonatype_credentials}}
run: ./mill mill.scalalib.SonatypeCentralPublishModule/
env:
MILL_PGP_SECRET_BASE64: ${{ secrets.PGP_SECRET_KEY }}
MILL_SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
MILL_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
8 changes: 6 additions & 2 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ import org.typelevel.scalacoptions.ScalacOptions.*
import org.typelevel.scalacoptions.{ScalaVersion, ScalacOptions}

object `mill-git` extends Cross[MillGitCross]("1.0.0")
trait MillGitCross extends Cross.Module[String] with StyleModule with GitVersionedPublishModule:
val millVersion = crossValue
trait MillGitCross
extends Cross.Module[String]
with StyleModule
with GitVersionedPublishModule
with SonatypeCentralPublishModule:
val millVersion = crossValue
override def scalaVersion = "3.7.1"
override def scalacOptions = super.scalacOptions() ++ ScalacOptions.tokensForVersion(
ScalaVersion.unsafeFromString(scalaVersion()),
Expand Down