mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-05-31 09:31:54 +00:00
Merge pull request #44 from funkemunky/funkemunky-patch-1
Updating build action to run on pull request
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
on:
|
||||
push:
|
||||
branches: ["**"]
|
||||
pull_request:
|
||||
types:
|
||||
- opened
|
||||
- synchronize
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -16,8 +20,10 @@ jobs:
|
||||
- name: Cache Maven packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/.m2
|
||||
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
||||
path: ~/.m2/repository # Cache the Maven repository
|
||||
key: maven-${{ runner.os }}-${{ hashFiles('**/*.xml') }}
|
||||
restore-keys: |
|
||||
maven-${{ runner.os }}-
|
||||
- name: Compile
|
||||
run: mvn -B -Pclean install
|
||||
env:
|
||||
@@ -26,4 +32,4 @@ jobs:
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: AntiVPN
|
||||
path: Assembly/target/Assembly-*.jar
|
||||
path: Assembly/target/Assembly-*.jar
|
||||
|
||||
Reference in New Issue
Block a user