mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-05-31 09:31:54 +00:00
33 lines
745 B
YAML
33 lines
745 B
YAML
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up JDK 17.0.2
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: 17.0
|
|
- name: Cache Maven packages
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.m2
|
|
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
|
|
- name: Compile
|
|
run: mvn -B -Pclean install
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Upload AntiVPN
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: AntiVPN
|
|
path: Assembly/target/Assembly-*.jar
|