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:
|
2023-02-13 04:44:07 +01:00
|
|
|
branches:
|
2022-05-10 01:36:28 +02:00
|
|
|
- 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:
|
2023-01-13 14:40:44 +01:00
|
|
|
release:
|
|
|
|
name: Release
|
2022-05-10 01:36:28 +02:00
|
|
|
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
|
2023-01-14 03:15:59 +01:00
|
|
|
with:
|
2023-01-13 22:32:40 +01:00
|
|
|
# Make sure the release step uses its own credentials:
|
|
|
|
# https://github.com/cycjimmy/semantic-release-action#private-packages
|
2023-01-14 03:20:37 +01:00
|
|
|
persist-credentials: false
|
2023-01-13 22:32:14 +01:00
|
|
|
fetch-depth: 0
|
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:
|
2023-02-13 04:45:17 +01:00
|
|
|
node-version: "18"
|
2022-12-08 21:11:21 +01:00
|
|
|
cache: 'npm'
|
2022-07-02 06:18:52 +02:00
|
|
|
- name: Setup semantic-release
|
2023-02-13 04:44:07 +01:00
|
|
|
run: npm install
|
2022-07-02 06:18:52 +02:00
|
|
|
- name: Release
|
2022-05-10 01:36:28 +02:00
|
|
|
env:
|
2023-01-10 22:40:29 +01:00
|
|
|
GITHUB_TOKEN: ${{ secrets.REPOSITORY_PUSH_ACCESS }}
|
2023-02-13 04:44:07 +01:00
|
|
|
run: npm exec semantic-release
|