Skip to content

Commit

Permalink
ci:pct-compose shell script
Browse files Browse the repository at this point in the history
  • Loading branch information
scarisey committed Jan 6, 2024
1 parent 07263c6 commit 9c7cfd8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
with:
java-version: openjdk@1.17
- name: Package
run: sbt assembly
run: sbt 'test;assembly'
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release delete ${{ github.ref_name }} --yes || true
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --generate-notes target/scala-3.3.1/pct-compose.jar
gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --generate-notes target/scala-3.3.1/pct-compose
4 changes: 3 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sbtassembly.AssemblyPlugin.defaultShellScript
organization := "dev.carisey"
homepage := Some(url("https://pct-compose.carisey.dev"))
licenses += "AGPL-3.0-or-later" -> url("https://www.gnu.org/licenses/agpl-3.0.fr.html#license-text")
Expand All @@ -15,7 +16,8 @@ scmInfo := Some(
scalaVersion := "3.3.1"
testFrameworks += new TestFramework("org.scalatest.tools.Framework")

assembly / assemblyJarName := "pct-compose.jar"
assemblyPrependShellScript := Some(defaultShellScript)
assembly / assemblyJarName := "pct-compose"

libraryDependencies ++= Seq(
"com.lihaoyi" %% "mainargs" % "0.5.4",
Expand Down

0 comments on commit 9c7cfd8

Please sign in to comment.