9
0
mirror of https://github.com/GeyserExtensionists/GeyserUtils.git synced 2025-12-19 15:09:24 +00:00
Files
GeyserUtils/.github/workflows/maven.yml
2025-10-15 12:46:37 +08:00

39 lines
857 B
YAML

name: Auto Release
on:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v2
# Setup JDK
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
java-version: 21
distribution: 'zulu'
# Build
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Auto release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: latest
prerelease: false
files: |
spigot/target/geyserutils-*.jar
geyser/target/geyserutils-*.jar
velocity/target/geyserutils-*.jar
bungee/target/geyserutils-*.jar