-
Notifications
You must be signed in to change notification settings - Fork 12
42 lines (40 loc) · 1.22 KB
/
release_backend.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: "Release Backend"
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v[0-9]+.[0-9]+.[0-9]+-[0-9]+KW[0-9][0-9]"
- "v[0-9]+.[0-9]+.[0-9]+-[0-9]+KW[0-9][0-9]-HOTFIX-*"
- "!v[0-9]+.[0-9]+.[0-9]+-[0-9]+KW[0-9][0-9]-RC*" # Don't release RCs
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
# This should be deep enough to fetch at least one light weight tag
fetch-depth: 500
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
overwrite-settings: false
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build
run: ./scripts/build_backend_version.sh
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
executable/target/executable*.jar
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}