release #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |