Skip to content

Commit

Permalink
This oughtta work
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Oct 22, 2021
1 parent 996bf00 commit 6bfc685
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ jobs:
tar xf targets.tar
rm targets.tar
- run: sbt ++${{ matrix.scala }} nativeImage
- run: sbt ++${{ matrix.scala }} ci-release

- uses: softprops/action-gh-release@v1
- if: startsWith(github.ref, 'refs/tags/')
run: sbt ++${{ matrix.scala }} nativeImage

- if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: target/native-image/spotify-next
11 changes: 9 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,17 @@ ThisBuild / githubWorkflowPublishTargetBranches := List(RefPredicate.StartsWith(
ThisBuild / githubWorkflowOSes := Seq("macos-10.15")

ThisBuild / githubWorkflowPublish := Seq(
WorkflowStep.Sbt(List("nativeImage")),
WorkflowStep.Sbt(
List("ci-release")
),
WorkflowStep.Sbt(
List("nativeImage"),
cond = Some("startsWith(github.ref, 'refs/tags/')")
),
WorkflowStep.Use(
UseRef.Public("softprops", "action-gh-release", "v1"),
params = Map("files" -> "target/native-image/spotify-next")
params = Map("files" -> "target/native-image/spotify-next"),
cond = Some("startsWith(github.ref, 'refs/tags/')")
)
)
ThisBuild / githubWorkflowGeneratedCI ~= {
Expand Down

0 comments on commit 6bfc685

Please sign in to comment.