forked from TAK-Product-Center/Server
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (40 loc) · 1.07 KB
/
main.yml
File metadata and controls
46 lines (40 loc) · 1.07 KB
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
43
44
45
46
name: On push to main
on:
workflow_dispatch:
push:
branches:
- main
- develop
# This allows a subsequently queued workflow run to interrupt previous runs
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
gradle:
strategy:
matrix:
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Setup Gradle
uses: gradle/gradle-build-action@v2
- name: Clean Bootwar
run: |
cd src
./gradlew clean bootWar
- name: Generate .rpm
run: |
cd src
./gradlew clean buildRpm
- name: Upload RPM Artifact
uses: actions/upload-artifact@v3
with:
name: takServer
path: src/takserver-package/build/distributions/*.rpm