Skip to content

Commit

Permalink
add github workflow for automatic build
Browse files Browse the repository at this point in the history
  • Loading branch information
McArcady authored and robertjanetzko committed Oct 10, 2020
1 parent 818a11c commit 8940a30
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
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

0 comments on commit 8940a30

Please sign in to comment.