Gitea Actions
All checks were successful
Build Minecraft Plugin / Build with Maven (push) Successful in 27s
All checks were successful
Build Minecraft Plugin / Build with Maven (push) Successful in 27s
This commit is contained in:
32
.gitea/workflows/package.yaml
Normal file
32
.gitea/workflows/package.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Build Minecraft Plugin
|
||||
run-name: ${{ gitea.actor }} is building Minecraft plugin 🚀
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build with Maven
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v5
|
||||
|
||||
- name: Set up JDK 21 and enable Maven cache
|
||||
uses: actions/setup-java@v5
|
||||
with:
|
||||
distribution: 'liberica'
|
||||
java-version: '21'
|
||||
cache: 'maven'
|
||||
|
||||
- name: Set up Maven
|
||||
uses: stCarolas/setup-maven@v5
|
||||
with:
|
||||
maven-version: 3.9.11
|
||||
|
||||
- name: Build and package with Maven
|
||||
run: mvn -B package
|
||||
|
||||
- name: Upload built artifacts
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: maven-artifacts
|
||||
path: target/spigot/*.jar
|
||||
Reference in New Issue
Block a user