-
Notifications
You must be signed in to change notification settings - Fork 43
53 lines (51 loc) · 1.51 KB
/
release.yml
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
48
49
50
51
52
53
name: release
on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'release version'
required: true
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.2.0
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- uses: coursier/cache-action@v5
# install node lts
- name: setup node
uses: actions/setup-node@v3
with:
node-version: '20.x'
cache: 'npm'
cache-dependency-path: izanami-frontend/package-lock.json
- name: build frontend
run: |
cd izanami-frontend
npm ci
npm run build
- name: build backend
run: sbt "set test in assembly := {}" clean assembly
- name: release
run: |
git checkout .
git config --global user.email "izanami-release-bot@users.noreply.github.com"
git config --global user.name "izanami-release-bot"
sbt "release release-version ${{ github.event.inputs.releaseVersion }} with-defaults skip-tests"
ls target
ls target/scala-2.13
- name: github release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ github.event.inputs.releaseVersion }}
files: |
target/scala-2.13/izanami.jar
- name: next version
run: |
git add .
git commit -am "Next dev version"
git push