Merge remote-tracking branch 'upstream/master' #28
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
name: ProxyPass Build | |
on: [push,pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
submodules: true | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}-maven- | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v1 | |
with: | |
java-version: 1.8 | |
- name: Build with Maven | |
run: mvn -B package | |
- name: Rename artifacts | |
run: mv target/proxypass-*.jar target/proxypass-pn.jar | |
- name: Archive artifacts | |
uses: actions/upload-artifact@v1 | |
if: success() | |
with: | |
name: PowerNukkit-ProxyPass | |
path: target/proxypass-pn.jar |