2022-03-20 19:03:05 +01:00
|
|
|
name: Release
|
|
|
|
on:
|
2022-05-27 14:26:06 +02:00
|
|
|
workflow_dispatch:
|
2022-03-20 19:03:05 +01:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-03-20 20:42:55 +01:00
|
|
|
- dev
|
2022-03-20 19:32:20 +01:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-03-20 20:42:55 +01:00
|
|
|
- dev
|
2022-03-20 19:03:05 +01:00
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-11-05 15:27:56 +01:00
|
|
|
uses: actions/checkout@v3
|
2022-03-20 19:03:05 +01:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup JDK
|
2022-11-05 15:27:56 +01:00
|
|
|
uses: actions/setup-java@v3
|
2022-03-20 19:03:05 +01:00
|
|
|
with:
|
2022-05-07 21:25:18 +02:00
|
|
|
java-version: '17'
|
2022-11-05 15:27:56 +01:00
|
|
|
distribution: 'temurin'
|
2022-03-20 19:03:05 +01:00
|
|
|
cache: gradle
|
|
|
|
- name: Setup Node.js
|
2022-11-05 15:27:56 +01:00
|
|
|
uses: actions/setup-node@v3
|
2022-03-20 19:03:05 +01:00
|
|
|
with:
|
|
|
|
node-version: "lts/*"
|
|
|
|
- name: Build with Gradle
|
2022-04-09 19:38:21 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-03-20 19:03:05 +01:00
|
|
|
run: ./gradlew build
|
|
|
|
- name: Setup semantic-release
|
2022-03-20 19:32:20 +01:00
|
|
|
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog gradle-semantic-release-plugin -D
|
2022-03-20 19:03:05 +01:00
|
|
|
- name: Release
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: npx semantic-release
|