Skip to content

Commit

Permalink
github actions on release + tag 0.4.1 so it runs.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed Jun 29, 2022
1 parent d284ccd commit a458301
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build
on:
push:
tags:
- '*'

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'sbt'
- uses: rinx/[email protected]
with:
graalvm-version: "22.1.0"
java-version: "java11"
native-image: "true"
- run: sbt assembly
- run: sbt nativeImage
- run: mv target/scala-2.13/cliche-assembly*.jar target/scala-2.13/cliche.jar
- uses: actions/upload-artifact@v3
with:
name: cliche.bin
path: target/native-image/cliche
- uses: actions/upload-artifact@v3
with:
name: cliche.jar
path: target/scala-2.13/cliche.jar
- uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
automatic_release_tag: ${{ github.ref }}
title: ${{ github.ref_name }}
files: |
./target/native-image/cliche
./target/scala-2.13/cliche.jar
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ enablePlugins(NativeImagePlugin)
name := "cliche"
organization := "fiatjaf"
scalaVersion := "2.13.8"
version := "0.5.0"
version := "0.4.1"
libraryDependencies ++= Seq(
"com.fiatjaf" % "immortan_2.13" % "0.7.2-SNAPSHOT",
"com.fiatjaf" % "immortan_2.13" % "0.7.1",
"com.github.alexarchambault" % "case-app_2.13" % "2.1.0-M13",
"com.lihaoyi" % "requests_2.13" % "0.7.0",
"com.iheart" % "ficus_2.13" % "1.5.0",
Expand Down

0 comments on commit a458301

Please sign in to comment.