Skip to content

Commit ac25568

Browse files
committed
Use setup-sbt in publish workflow
1 parent b4c5069 commit ac25568

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Diff for: .github/workflows/ci.yml

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ jobs:
139139
echo "$PGP_PASSPHRASE" | gpg --pinentry-mode loopback --passphrase-fd 0 --import /tmp/signing-key.gpg
140140
(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)
141141
142+
- name: Setup sbt
143+
uses: sbt/setup-sbt@v1
144+
142145
- name: Publish
143146
run: sbt tlCiRelease
144147

Diff for: build.sbt

+7-3
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ ThisBuild / scmInfo := Some(
4444

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

47-
ThisBuild / githubWorkflowBuildPreamble ++= Seq(
48-
WorkflowStep.Use(
47+
val setupSbt = WorkflowStep.Use(
4948
UseRef.Public("sbt", "setup-sbt", "v1"),
5049
name = Some("Setup sbt")
51-
),
50+
)
51+
52+
ThisBuild / githubWorkflowBuildPreamble ++= Seq(
53+
setupSbt,
5254
WorkflowStep.Use(
5355
UseRef.Public("actions", "setup-node", "v3"),
5456
name = Some("Setup NodeJS v18 LTS"),
@@ -62,6 +64,8 @@ ThisBuild / githubWorkflowBuildPreamble ++= Seq(
6264
),
6365
)
6466

67+
ThisBuild / githubWorkflowPublishPreamble += setupSbt
68+
6569
val ciVariants = List("ciNode", "ciFirefox", "ciChrome", "ciJSDOMNodeJS")
6670

6771
ThisBuild / githubWorkflowBuildMatrixAdditions += "ci" -> ciVariants

0 commit comments

Comments
 (0)