-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (53 loc) · 1.66 KB
/
maven.yml
File metadata and controls
58 lines (53 loc) · 1.66 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
47
48
49
50
51
52
53
54
55
56
57
58
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Download Wix
uses: i3h/download-release-asset@v1
with:
owner: wixtoolset
repo: wix3
tag: wix3112rtm
file: wix311-binaries.zip
- name: Decompress Wix
uses: DuckSoft/extract-7z-action@v1.0
with:
pathSource: wix311-binaries.zip
pathTarget: ./target/wix
- name: Add Wix to Path
run: echo "$HOME/target/wix" >> $GITHUB_PATH
- uses: actions/checkout@v2
- name: Set up JDK 15
uses: actions/setup-java@v1
with:
java-version: 15
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Install plugins
run: mvn install
- name: Compile
run: mvn compile
- name: Build
run: mvn javafx:jlink -f pom.xml
- name: Make exe
run: jpackage --runtime-image target/textBaseRPG --name textBaseRPG --module RPGgame/com.wesleycodingteam.App --win-dir-chooser --win-menu --win-shortcut --app-version 1.0
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "latest"
prerelease: true
title: "textBaseRPG window build"
files: |
*.exe