-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github workflow for automatic build
- Loading branch information
1 parent
818a11c
commit 8940a30
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Build LegendsBrowser | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 * * 1' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Install genisoimage | ||
run: sudo apt-get install genisoimage | ||
|
||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
java-package: jdk | ||
architecture: x64 | ||
|
||
- uses: actions/checkout@v2 | ||
- run: | | ||
echo "PKG_NAME=legendsbrowser-$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
- name: Build | ||
run: | | ||
mvn --batch-mode -Pplatform-mac-os package | ||
- name: Upload exe | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.PKG_NAME }}.exe | ||
path: target/LegendsBrowser-*.exe | ||
|
||
- name: Upload jar | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.PKG_NAME }}.jar | ||
path: target/legendsbrowser-*-shaded.jar | ||
|
||
- name: Upload dmg | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ env.PKG_NAME }}.dmg | ||
path: target/legendsbrowser-*.dmg |