Skip to content

Commit

Permalink
Merge pull request #53 from Kevin-Lee/rc
Browse files Browse the repository at this point in the history
Skala v0.1.0
  • Loading branch information
kevin-lee committed May 15, 2018
2 parents 9f4519e + d23eab0 commit 7972a2a
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 26 deletions.
46 changes: 23 additions & 23 deletions .build-scripts/release-files-copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,26 @@ echo "======================================================"
echo "ls -l target/scala-*/*.jar"
ls -l target/scala-*/*.jar
echo ""
#echo "======================================================"
#if [ -d "target/ci" ]; then
# echo "Clean up existing target/ci/*"
# echo "rm -R target/ci/*"
# rm -R target/ci/*
# echo "------------------------------------------------------"
#fi
#echo "Create a folder to put all the binary files."
#echo "------------------------------------------------------"
#echo "mkdir -p target/ci/$PROJECT_BUILD_NAME"
#mkdir -p "target/ci/$PROJECT_BUILD_NAME"
#echo "ls -l target/ci/$PROJECT_BUILD_NAME"
#ls -l "target/ci/$PROJECT_BUILD_NAME"
#
#echo "------------------------------------------------------"
#echo "cp target/scala-*/*.jar target/ci/$PROJECT_BUILD_NAME/"
#cp target/scala-*/*.jar "target/ci/$PROJECT_BUILD_NAME/"
#echo "------------------------------------------------------"
#echo "ls -lR target/ci/$PROJECT_BUILD_NAME/"
#ls -lR "target/ci/$PROJECT_BUILD_NAME"
#echo "------------------------------------------------------"
#echo "Copying all binary files to 'target/ci', Done!"
#echo "======================================================"
echo "======================================================"
if [ -d "target/ci" ]; then
echo "Clean up existing target/ci/*"
echo "rm -Rf target/ci/*"
rm -Rf target/ci/*
echo "------------------------------------------------------"
fi
echo "Create a folder to put all the binary files."
echo "------------------------------------------------------"
echo "mkdir -p target/ci/$PROJECT_BUILD_NAME"
mkdir -p "target/ci/$PROJECT_BUILD_NAME"
echo "ls -l target/ci/$PROJECT_BUILD_NAME"
ls -l "target/ci/$PROJECT_BUILD_NAME"

echo "------------------------------------------------------"
echo "cp target/scala-*/*.jar target/ci/$PROJECT_BUILD_NAME/"
cp target/scala-*/*.jar "target/ci/$PROJECT_BUILD_NAME/"
echo "------------------------------------------------------"
echo "ls -lR target/ci/$PROJECT_BUILD_NAME/"
ls -lR "target/ci/$PROJECT_BUILD_NAME"
echo "------------------------------------------------------"
echo "Copying all binary files to 'target/ci', Done!"
echo "======================================================"
13 changes: 10 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -133,10 +133,17 @@ ghreleaseNotes := { tagName =>
ghreleaseTitle := { tagName => s"${name.value} $tagName" }

ghreleaseAssets := {
lazy val nameFilter = wildcardFilter("*.jar")
val assets = packagedArtifacts.value.values.toSeq.filter(nameFilter.accept)
println(s">>> Assets to release: ${assets.mkString("\n")}")
val assets = listFiles(target.value / "ci", "*.jar")

println(
s"""
|>>> Assets to release:
|----------------------
| ${assets.mkString("\n ")}
|""".stripMargin)

assets

}

/* } GitHub Release */

0 comments on commit 7972a2a

Please sign in to comment.