Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit ee415ed

Browse files
authored
Merge pull request #22 from scala-steward/update/sbt-github-actions-0.10.1
2 parents f2769ea + 3ad01da commit ee415ed

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
publish:
7272
name: Publish Artifacts
7373
needs: [build]
74-
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
74+
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/heads/master') || startsWith(github.ref, 'refs/tags/v'))
7575
strategy:
7676
matrix:
7777
os: [ubuntu-latest]

build.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ ThisBuild / crossScalaVersions := Seq(Scala213)
3333
ThisBuild / githubWorkflowJavaVersions := Seq(GraalVM11)
3434
//sbt-ci-release settings
3535
ThisBuild / githubWorkflowTargetTags ++= Seq("v*")
36-
ThisBuild / githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Tag("v")))
37-
ThisBuild / githubWorkflowPublishPreamble := Seq(WorkflowStep.Use("olafurpg", "setup-gpg", "v3"))
36+
ThisBuild / githubWorkflowPublishTargetBranches := Seq(RefPredicate.StartsWith(Ref.Branch("master")), RefPredicate.StartsWith(Ref.Tag("v")))
37+
ThisBuild / githubWorkflowPublishPreamble := Seq(WorkflowStep.Use(UseRef.Public("olafurpg", "setup-gpg", "v3")))
3838
ThisBuild / githubWorkflowPublish := Seq(WorkflowStep.Sbt(List("ci-release")))
3939
ThisBuild / githubWorkflowEnv ++= List("PGP_PASSPHRASE", "PGP_SECRET", "SONATYPE_PASSWORD", "SONATYPE_USERNAME").map { envKey =>
4040
envKey -> s"$${{ secrets.$envKey }}"

project/plugins.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.16")
2-
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.9.5")
2+
addSbtPlugin("com.codecommit" % "sbt-github-actions" % "0.10.1")
33
addSbtPlugin("com.github.ghostdogpr" % "caliban-codegen-sbt" % "0.9.4")
44
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5")

0 commit comments

Comments
 (0)