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.
importcoursierapi.MavenRepository
interp.repositories.update(
interp.repositories() ++Seq(MavenRepository.of(
"https://jitpack.io"
)))
@import$ivy.`com.ivmoreau.githubmillscala::mill-github::9dcd1b8a48`importmill._importscalalib._importmill.scalalib.publish._importcom.ivmoreau.millgithub.GitHubPublishModuleimportcom.ivmoreau.millgithub.ProjectRepositoryobjectexextendsScalaModulewithGitHubPublishModule {
overridedefscalaVersion="3.2.2"overridedefpublishRepository:ProjectRepository=ProjectRepository("ivanmoreau", "examplemillgithub")
overridedefpomSettings: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"
)))
overridedefpublishVersion:T[String] ="0.0.1"
}You have GITHUB_TOKEN and GITHUB_USERNAME fow wocaw/devewopment
You have CI_GITHUB_TOKENruns 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.publishGitHubLooks 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