2022-05-07 05:43:56 +02:00
|
|
|
name: Release
|
2023-01-13 14:41:38 +01:00
|
|
|
|
2022-05-07 05:43:56 +02:00
|
|
|
on:
|
2022-05-27 12:25:44 +02:00
|
|
|
workflow_dispatch:
|
2022-05-07 05:43:56 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-05-07 21:19:01 +02:00
|
|
|
- dev
|
2022-05-07 05:43:56 +02:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-05-07 21:19:01 +02:00
|
|
|
- dev
|
2023-01-13 14:41:38 +01:00
|
|
|
|
2022-05-07 05:43:56 +02:00
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
name: Release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2022-10-13 17:35:24 +02:00
|
|
|
uses: actions/checkout@v3
|
2022-05-07 05:43:56 +02:00
|
|
|
with:
|
2023-01-13 22:31:11 +01:00
|
|
|
# Make sure the release step uses its own credentials:
|
|
|
|
# https://github.com/cycjimmy/semantic-release-action#private-packages
|
|
|
|
persist-credentials: false
|
2022-05-07 05:43:56 +02:00
|
|
|
fetch-depth: 0
|
|
|
|
- name: Setup JDK
|
2022-11-05 15:28:42 +01:00
|
|
|
uses: actions/setup-java@v3
|
2022-05-07 05:43:56 +02:00
|
|
|
with:
|
2022-05-07 21:21:44 +02:00
|
|
|
java-version: '17'
|
2022-12-05 23:03:49 +01:00
|
|
|
distribution: 'zulu'
|
2022-05-07 05:43:56 +02:00
|
|
|
cache: gradle
|
|
|
|
- name: Setup Node.js
|
2022-11-05 15:28:42 +01:00
|
|
|
uses: actions/setup-node@v3
|
2022-05-07 05:43:56 +02:00
|
|
|
with:
|
2022-12-05 23:03:49 +01:00
|
|
|
node-version: "latest"
|
|
|
|
cache: 'npm'
|
2022-05-07 05:43:56 +02:00
|
|
|
- name: Setup semantic-release
|
2023-01-13 15:50:39 +01:00
|
|
|
run: npm install semantic-release@19.0.5 @saithodev/semantic-release-backmerge @semantic-release/git @semantic-release/changelog gradle-semantic-release-plugin@1.7.4 -D
|
2022-12-15 00:16:17 +01:00
|
|
|
- name: Create release
|
2022-05-07 05:43:56 +02:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
run: npx semantic-release
|