-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (45 loc) · 2.18 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: release-wasm4s
on:
workflow_dispatch:
inputs:
version:
description: "Version number"
jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: setup jdk11
uses: actions/setup-java@v1
with:
java-version: 11
- uses: coursier/cache-action@v5
- name: change version
run: |
echo 'ThisBuild / version := "${{ inputs.version }}"' > version.sbt
- name: build-libs
id: build-libs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
sh ./update-extism.sh
sbt ';+compile;+test;+package;+assembly;+publish'
- name: Generate SHA-256
run: |
shasum -a 256 ./target/scala-2.13/wasm4s_2.13-${{ inputs.version }}.jar | cut -d ' ' -f 1 > ./target/scala-2.13/wasm4s_2.13-${{ inputs.version }}.jar.sha256
shasum -a 256 ./target/scala-2.13/wasm4s-bundle_2.13-${{ inputs.version }}.jar | cut -d ' ' -f 1 > ./target/scala-2.13/wasm4s-bundle_2.13-${{ inputs.version }}.jar.sha256
shasum -a 256 ./target/scala-2.12/wasm4s_2.12-${{ inputs.version }}.jar | cut -d ' ' -f 1 > ./target/scala-2.12/wasm4s_2.12-${{ inputs.version }}.jar.sha256
shasum -a 256 ./target/scala-2.12/wasm4s-bundle_2.12-${{ inputs.version }}.jar | cut -d ' ' -f 1 > ./target/scala-2.12/wasm4s-bundle_2.12-${{ inputs.version }}.jar.sha256
- name: Release binary and SHA-256 checksum to GitHub
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ inputs.version }}
files: |
./target/scala-2.13/wasm4s_2.13-${{ inputs.version }}.jar
./target/scala-2.13/wasm4s-bundle_2.13-${{ inputs.version }}.jar
./target/scala-2.13/wasm4s_2.13-${{ inputs.version }}.jar.sha256
./target/scala-2.13/wasm4s-bundle_2.13-${{ inputs.version }}.jar.sha256
./target/scala-2.12/wasm4s_2.12-${{ inputs.version }}.jar
./target/scala-2.12/wasm4s-bundle_2.12-${{ inputs.version }}.jar
./target/scala-2.12/wasm4s_2.12-${{ inputs.version }}.jar.sha256
./target/scala-2.12/wasm4s-bundle_2.12-${{ inputs.version }}.jar.sha256