2022-05-10 01:36:28 +02:00
|
|
|
name: Release
|
|
|
|
|
|
|
|
on:
|
2022-06-24 00:55:50 +02:00
|
|
|
workflow_dispatch:
|
2022-05-10 01:36:28 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-07-02 06:18:52 +02:00
|
|
|
- dev
|
2022-05-10 01:36:28 +02:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-07-02 06:18:52 +02:00
|
|
|
- dev
|
2022-05-10 01:36:28 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-12-08 20:22:04 +01:00
|
|
|
- name: Cancel previou runs
|
2022-11-05 15:25:38 +01:00
|
|
|
uses: styfle/cancel-workflow-action@0.11.0
|
2022-12-08 20:22:04 +01:00
|
|
|
- name: Checkout
|
2022-05-10 01:36:28 +02:00
|
|
|
uses: actions/checkout@v3
|
2022-12-08 20:32:28 +01:00
|
|
|
- name: Set up JDK
|
2022-05-10 01:36:28 +02:00
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
2022-12-08 20:32:28 +01:00
|
|
|
java-version: '17'
|
2022-05-10 01:36:28 +02:00
|
|
|
distribution: 'zulu'
|
2022-07-02 06:18:52 +02:00
|
|
|
- name: Setup Node.js
|
2022-11-05 15:25:38 +01:00
|
|
|
uses: actions/setup-node@v3
|
2022-07-02 06:18:52 +02:00
|
|
|
with:
|
2022-12-07 01:25:35 +01:00
|
|
|
node-version: "latest"
|
2022-12-08 21:11:21 +01:00
|
|
|
cache: 'npm'
|
2022-05-10 01:36:28 +02:00
|
|
|
- name: Build with Gradle
|
2022-12-08 20:32:48 +01:00
|
|
|
run: ./gradlew build --no-daemon
|
2022-07-02 06:18:52 +02:00
|
|
|
- name: Setup semantic-release
|
2022-12-26 19:21:23 +01:00
|
|
|
run: npm install semantic-release @saithodev/semantic-release-backmerge @semantic-release/git @semantic-release/changelog gradle-semantic-release-plugin -D
|
2022-07-02 06:18:52 +02:00
|
|
|
- name: Release
|
2022-05-10 01:36:28 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-09-22 18:47:46 +02:00
|
|
|
run: npx semantic-release
|