mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-06-11 22:20:40 +00:00
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and Test
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Cache local Maven repository
|
|
uses: actions/cache@v4
|
|
with:
|
|
path: ~/.m2/repository
|
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-maven-
|
|
- uses: actions/checkout@v5
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'zulu'
|
|
- name: Set up Maven
|
|
uses: stCarolas/setup-maven@v5
|
|
with:
|
|
maven-version: 3.9.6
|
|
- name: Compile
|
|
run: mvn -B package --file pom.xml
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
- name: Upload AntiVPN
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: AntiVPN-Universal
|
|
path: Universal/target/AntiVPN-*.jar
|
|
- name: Upload Sponge plugin
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: AntiVPN-Sponge
|
|
path: Sponge/target/Sponge-*.jar
|