File tree Expand file tree Collapse file tree 1 file changed +39
-5
lines changed
Expand file tree Collapse file tree 1 file changed +39
-5
lines changed Original file line number Diff line number Diff line change 1212jobs :
1313 build :
1414
15- runs-on : ubuntu -latest
15+ runs-on : windows -latest
1616
1717 steps :
18+ - name : Download Wix
19+ uses : i3h/download-release-asset@v1
20+ with :
21+ owner : wixtoolset
22+ repo : wix3
23+ tag : wix3112rtm
24+ file : wix311-binaries.zip
25+ - name : Decompress Wix
26+ uses : DuckSoft/extract-7z-action@v1.0
27+ with :
28+ pathSource : wix311-binaries.zip
29+ pathTarget : ./target/wix
30+ - name : Add Wix to Path
31+ run : echo "$HOME/target/wix" >> $GITHUB_PATH
1832 - uses : actions/checkout@v2
19- - name : Set up JDK 1.8
33+ - name : Set up JDK 15
2034 uses : actions/setup-java@v1
2135 with :
22- java-version : 1.8
23- - name : Build with Maven
24- run : mvn -B package --file pom.xml
36+ java-version : 15
37+ - name : Cache Maven packages
38+ uses : actions/cache@v2
39+ with :
40+ path : ~/.m2
41+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
42+ restore-keys : ${{ runner.os }}-m2
43+ - name : Install plugins
44+ run : mvn install
45+ - name : Compile
46+ run : mvn compile
47+ - name : Build
48+ run : mvn javafx:jlink -f pom.xml
49+ - name : Make exe
50+ run : jpackage --runtime-image target/textBaseRPG --name textBaseRPG --module RPGgame/com.wesleycodingteam.App --win-dir-chooser --win-menu --win-shortcut --app-version 1.0
51+ - uses : " marvinpinto/action-automatic-releases@latest"
52+ with :
53+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
54+ automatic_release_tag : " latest"
55+ prerelease : true
56+ title : " textBaseRPG window build"
57+ files : |
58+ *.exe
You can’t perform that action at this time.
0 commit comments