Skip to content

Commit 8b1d6bd

Browse files
committed
ci: add sbt-ci-release
1 parent 2a6818b commit 8b1d6bd

File tree

4 files changed

+51
-36
lines changed

4 files changed

+51
-36
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup JDK
19+
uses: actions/setup-java@v4
20+
with:
21+
distribution: temurin
22+
java-version: 17
23+
cache: sbt
24+
25+
- name: Setup SBT
26+
uses: sbt/setup-sbt@v1
27+
28+
- name: Run ci-release
29+
run: sbt ci-release
30+
env:
31+
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
32+
PGP_SECRET: ${{ secrets.PGP_SECRET }}
33+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
34+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

build.sbt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1+
inThisBuild(List(
2+
organization := "com.donderom",
3+
homepage := Some(url("https://github.com/donderom/llm4s")),
4+
description := "Scala 3 bindings for llama.cpp",
5+
licenses := List("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
6+
developers := List(
7+
Developer(
8+
id = "donderom",
9+
name = "Roman Parykin",
10+
email = "[email protected]",
11+
url = url("https://donderom.com")
12+
)
13+
),
14+
))
15+
116
val scala3Version = "3.3.0"
217

318
ThisBuild / scalaVersion := scala3Version
4-
ThisBuild / organization := "com.donderom"
5-
ThisBuild / version := "0.12.0-b4599"
6-
ThisBuild / versionScheme := Some("early-semver")
719

820
lazy val root = project
921
.in(file("."))

project/plugins.sbt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.4")
22

33
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.14.0")
4+
5+
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.11.1")

publish.sbt

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)