Skip to content

Commit

Permalink
Fix hepek docs
Browse files Browse the repository at this point in the history
  • Loading branch information
sake92 committed Dec 23, 2024
1 parent 4cfbe6f commit ad38a1a
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
16 changes: 11 additions & 5 deletions DEV.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,21 @@ scala-cli compile examples\scala-cli

# for local dev/test
./mill __.publishLocal
```

git diff
git commit -am "msg"
```sh

$VERSION="0.7.5"
git commit --allow-empty -m "Release $VERSION"
# RELEASE
$VERSION="x.y.z"
git commit --allow-empty -am "Release $VERSION"
git tag -a $VERSION -m "Release $VERSION"
git push --atomic origin main $VERSION
git push --atomic origin main --tags


# prepare for NEXT version
# bump publishVersion to x.y.z-SNAPSHOT
$VERSION="x.y.z-SNAPSHOT"
git commit -am"Bump version to $VERSION"

```

Expand Down
12 changes: 8 additions & 4 deletions build.sc → build.mill
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import $ivy.`io.chris-kipp::mill-ci-release::0.1.10`
import $ivy.`ba.sake::mill-hepek::0.0.2`
package build

import $ivy.`com.lihaoyi::mill-contrib-sonatypecentral:`
import $ivy.`ba.sake::mill-hepek::0.1.0`

import mill._
import mill.scalalib._, scalafmt._, publish._
import io.kipp.mill.ci.release.CiReleaseModule
import mill.contrib.sonatypecentral.SonatypeCentralPublishModule
import ba.sake.millhepek.MillHepekModule

object sharaf extends SharafPublishModule {
Expand Down Expand Up @@ -66,7 +68,9 @@ object validson extends SharafPublishModule {
object test extends ScalaTests with SharafTestModule
}

trait SharafPublishModule extends SharafCommonModule with CiReleaseModule {
trait SharafPublishModule extends SharafCommonModule with SonatypeCentralPublishModule {

def publishVersion = "0.8.0-SNAPSHOT"

def pomSettings = PomSettings(
organization = "ba.sake",
Expand Down
4 changes: 3 additions & 1 deletion docs/src/utils/ScalaCliFiles.scala
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ object ScalaCliFiles:
val validation = get("validation.sc")

private def get(chunk: os.PathChunk) =
os.read(os.pwd / "examples" / "scala-cli" / chunk)
// os.pwd is sandboxed, this is called from plugin !
val wd = os.Path(System.getenv("MILL_WORKSPACE_ROOT"))
os.read(wd / "examples" / "scala-cli" / chunk)

0 comments on commit ad38a1a

Please sign in to comment.