mirror of
https://github.com/GeyserExtensionists/GeyserUtils.git
synced 2025-12-19 14:59:18 +00:00
Create maven.yml
This commit is contained in:
46
.github/workflows/maven.yml
vendored
Normal file
46
.github/workflows/maven.yml
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
name: Auto Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
# Setup JDK
|
||||
- name: Setup Java JDK
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 8
|
||||
distribution: 'zulu'
|
||||
|
||||
- name: Restore Maven cache
|
||||
uses: skjolber/maven-cache-github-action@v1
|
||||
with:
|
||||
step: restore
|
||||
|
||||
# Build
|
||||
- name: Build with Maven
|
||||
run: mvn package
|
||||
|
||||
- name: Save Maven cache
|
||||
uses: skjolber/maven-cache-github-action@v1
|
||||
with:
|
||||
step: save
|
||||
- name: Auto release
|
||||
uses: "marvinpinto/action-automatic-releases@latest"
|
||||
with:
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
automatic_release_tag: latest
|
||||
prerelease: false
|
||||
files: |
|
||||
spigot/target/*.jar
|
||||
geyser/target/*.jar
|
||||
velocity/target/*.jar
|
||||
bungee/target/*.jar
|
||||
Reference in New Issue
Block a user