Merge pull request #44 from funkemunky/funkemunky-patch-1

Updating build action to run on pull request
This commit is contained in:
Dawson
2023-10-30 09:57:55 -04:00
committed by GitHub
+9 -3
View File
@@ -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