-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (31 loc) · 1.09 KB
/
build-app-as-jar.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
name: Build-App-Jar
run-name: Building app Jar
on:
push:
tags:
- v**
jobs:
Build-App-Jar:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Maven
uses: stCarolas/[email protected]
with:
maven-version: 3.8.8
- name: Install Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
# Get project version
- run: echo SHOWLY_DESKTOP_VERSION="$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_ENV
- run: mvn compile package
# Upload linux executable to releases
- uses: xresloader/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "target/shade/showly-desktop-*"
draft: false
tags: true