Skip to content

Commit

Permalink
Prepare the infra for the first release (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamzaremmal authored Jan 10, 2025
2 parents 70092a3 + 452f61e commit 494c651
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
run-name: Release Steps (${{ github.ref_name }})
name: Release Steps

on:
push:
tags: v*

concurrency:
group: release-${{ github.ref_name }}
cancel-in-progress: true

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 8
cache: sbt
- uses: sbt/setup-sbt@v1
- run: sbt ci-release
env:
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
File renamed without changes.
16 changes: 13 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
val scala3Version = "3.3.3"
val scala3Version = "3.3.4"

inThisBuild(List(
organization := "ch.epfl.lamp",
homepage := Some(url("https://lampepfl.github.io/steps")),
licenses := List("Apache-2.0" -> url(s"https://github.com/lampepfl/steps/blob/v${version.value}/LICENSE")),
developers := List(
Developer("natsukagami", "Natsu Kagami", "natsukagami@gmail.com", url("https://github.com/natsukagami")),
Developer("hamzaremmal", "Hamza Remmal", "hamza@remmal.net", url("https://remmal.net")),
Developer("bracevac", "Oliver Bračevac", "oliver@bracevac.org", url("https://bracevac.org"))
)
))


lazy val root = project
.in(file("."))
.settings(
name := "steps",
organization := "ch.epfl.lamp",
version := "0.1.0-SNAPSHOT",
scalaVersion := scala3Version,
libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test,
Compile / doc / scalacOptions ++= Seq(
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.6.1")

0 comments on commit 494c651

Please sign in to comment.