Worflow now uses setup-java for caching as well. #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
distribution: 'zulu' | |
cache: 'maven' | |
- 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 | |
path: Assembly/target/Assembly-*.jar |