mirror of
https://github.com/funkemunky/AntiVPN.git
synced 2026-07-02 17:00:57 +00:00
40 lines
1006 B
YAML
40 lines
1006 B
YAML
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
branches: [master]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build and Test
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '17'
|
|
distribution: 'zulu'
|
|
cache: 'maven'
|
|
cache-dependency-path: '**/pom.xml' # Add this line
|
|
- 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
|