Skip to content

Commit

Permalink
Move binary before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Dec 3, 2021
1 parent cfaec74 commit fb8c131
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ jobs:
- if: startsWith(github.ref, 'refs/tags/')
run: sbt ++${{ matrix.scala }} nativeImage

- run: mv target/native-image/spotify-next target/native-image/spotify-next-${{ matrix.os }}

- if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
files: target/native-image/spotify-next-${{ matrix.os }}
files: target/native-image/spotify-next
7 changes: 6 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ ThisBuild / githubWorkflowGeneratedCI ~= {
List("nativeImage"),
cond = Some("startsWith(github.ref, 'refs/tags/')")
),
WorkflowStep.Run(
List(
"mv target/native-image/spotify-next target/native-image/spotify-next-${{ matrix.os }}"
)
),
WorkflowStep.Use(
UseRef.Public("softprops", "action-gh-release", "v1"),
params = Map("files" -> "target/native-image/spotify-next-${{ matrix.os }}"),
params = Map("files" -> "target/native-image/spotify-next"),
cond = Some("startsWith(github.ref, 'refs/tags/')")
)
)
Expand Down

0 comments on commit fb8c131

Please sign in to comment.