The code was taken from the conntrib/Gitlab. :3
Add this to youw buiwd.sc if you want to use the watest vewsion from Mavewn Centwal OwO:
import $ivy.`com.ivmoreau::mill-github::<lastest version>`
otherwise, u can use Jitpack OwO as fowwows OwO in the next section OwO.
suwpwisingwy yes, i-it does!=. the runs away onwy thing you nyeed t-to do is t-to impowt the x3 dependecy and set the x3 ENV vawiabwes.
import coursierapi.MavenRepository
interp.repositories.update(
interp.repositories() ++ Seq(MavenRepository.of(
"https://jitpack.io"
)))
@
import $ivy.`com.ivmoreau.githubmillscala::mill-github::9dcd1b8a48`
import mill._
import scalalib._
import mill.scalalib.publish._
import com.ivmoreau.millgithub.GitHubPublishModule
import com.ivmoreau.millgithub.ProjectRepository
object ex extends ScalaModule with GitHubPublishModule {
override def scalaVersion = "3.2.2"
override def publishRepository: ProjectRepository = ProjectRepository("ivanmoreau", "examplemillgithub")
override def pomSettings: T[PomSettings] = PomSettings(
organization = "com.ivmoreau",
description = "Example of mill-github",
url = "https://github.com/ivanmoreau/examplemillgithub",
licenses = Seq(
License.`MPL-2.0`
),
versionControl = VersionControl.github("ivanmoreau","examplemillgithub"),
developers = Seq(
Developer(
"ivanmoreau",
"Ivan Molina Rebolledo",
url = "ivmoreau.com"
)))
override def publishVersion: T[String] = "0.0.1"
}
You have GITHUB_TOKEN
and GITHUB_USERNAME
fow wocaw/devewopment
You have CI_GITHUB_TOKEN
runs away fow github sweats CI. YOu nyeed t-to set up this vawiabwe in CI tho.
Aftew this, the x3 u-usage is simiwiaw ÚwÚ t-to Gitwab Contwib Moduwe
You extend :3 GitHubPubwishModuwe in youw buiwd.sc and fiww the x3 missing fiewds.
Then t-to pubwish use somehting wike:
./mill ex.publishGitHub
Looks funny uwu :3. I bet someone is going to use this in production anyways Uwu.
Awways wewcome OwO. Pwease open an issue befowe making a puww wequest, or don't ÙwÚ, it's not required but it's nice to know what's going on OwO.
It is! :3 It's the fwist section OwO.
The one from the mill repo owo