Skip to content

Merge pull request #47 from pascalseeland/dependabot/maven/org.apache… #164

Merge pull request #47 from pascalseeland/dependabot/maven/org.apache…

Merge pull request #47 from pascalseeland/dependabot/maven/org.apache… #164

Workflow file for this run

name: Java Tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Cache Maven packages
uses: actions/cache@v1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Test and Package with Maven
run: mvn -B test package
- uses: actions/upload-artifact@master
with:
name: ilserver-jar
path: target/ilserver.jar
deploy:
runs-on: ubuntu-latest
needs: [build]
if: ${{ github.event_name == 'push' && contains(github.ref, 'refs/tags/') }}
permissions:
contents: write
steps:
- uses: actions/download-artifact@master
with:
name: ilserver-jar
path: ilserver-download
- uses: ncipollo/release-action@v1
with:
artifacts: "ilserver-download/ilserver.jar"