File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ branches : [release]
5
+ tags : ["*"]
6
+ jobs :
7
+ publish :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+ with :
12
+ fetch-depth : 0
13
+ - uses : actions/setup-java@v4
14
+ with :
15
+ distribution : temurin
16
+ java-version : 21
17
+ cache : sbt
18
+ - run : sbt ci-release
19
+ env :
20
+ PGP_PASSPHRASE : ${{ secrets.PGP_PASSPHRASE }}
21
+ PGP_SECRET : ${{ secrets.PGP_SECRET }}
22
+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
23
+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
Original file line number Diff line number Diff line change @@ -3,17 +3,23 @@ import scalanative.build._
3
3
4
4
ThisBuild / scalaVersion := " 3.3.3"
5
5
6
+ publish / skip := true
7
+
6
8
lazy val root =
7
9
crossProject(JVMPlatform , NativePlatform )
8
10
.crossType(CrossType .Full )
9
11
.in(file(" ." ))
10
12
.settings(
11
13
Seq (
12
14
name := " Gears" ,
13
- organization := " ch.epfl.lamp" ,
14
- version := " 0.2.0-SNAPSHOT" ,
15
+ versionScheme := Some (" early-semver" ),
15
16
libraryDependencies += " org.scalameta" %%% " munit" % " 1.0.0-RC1" % Test ,
16
- testFrameworks += new TestFramework (" munit.Framework" )
17
+ testFrameworks += new TestFramework (" munit.Framework" ),
18
+
19
+ // publish settings
20
+ organization := " ch.epfl.lamp" ,
21
+ homepage := Some (url(" https://lampepfl.github.io/gears" )),
22
+ licenses := List (License .Apache2 )
17
23
)
18
24
)
19
25
.jvmSettings(
Original file line number Diff line number Diff line change 1
1
addSbtPlugin(" org.portable-scala" % " sbt-scala-native-crossproject" % " 1.2.0" )
2
2
addSbtPlugin(" org.scala-native" % " sbt-scala-native" % " 0.5.1" )
3
3
addSbtPlugin(" org.scalameta" % " sbt-scalafmt" % " 2.4.6" )
4
+ addSbtPlugin(" com.github.sbt" % " sbt-ci-release" % " 1.5.12" )
You can’t perform that action at this time.
0 commit comments