Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use setup-sbt in publish workflow #127

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -139,6 +139,9 @@ jobs:
echo "$PGP_PASSPHRASE" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg
(echo "$PGP_PASSPHRASE"; echo; echo) | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase $(gpg --list-secret-keys --with-colons 2> /dev/null | grep '^sec:' | cut --delimiter ':' --fields 5 | tail -n 1)
- name: Setup sbt
uses: sbt/setup-sbt@v1

- name: Publish
run: sbt tlCiRelease

12 changes: 8 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -44,11 +44,13 @@ ThisBuild / scmInfo := Some(

ThisBuild / crossScalaVersions := Seq("2.11.12", "2.12.16", "2.13.7", "3.1.3")

val setupSbt = WorkflowStep.Use(
UseRef.Public("sbt", "setup-sbt", "v1"),
name = Some("Setup sbt")
)

ThisBuild / githubWorkflowBuildPreamble ++= Seq(
WorkflowStep.Use(
UseRef.Public("sbt", "setup-sbt", "v1"),
name = Some("Setup sbt")
),
setupSbt,
WorkflowStep.Use(
UseRef.Public("actions", "setup-node", "v3"),
name = Some("Setup NodeJS v18 LTS"),
@@ -62,6 +64,8 @@ ThisBuild / githubWorkflowBuildPreamble ++= Seq(
),
)

ThisBuild / githubWorkflowPublishPreamble += setupSbt

val ciVariants = List("ciNode", "ciFirefox", "ciChrome", "ciJSDOMNodeJS")

ThisBuild / githubWorkflowBuildMatrixAdditions += "ci" -> ciVariants