CI / build (push) Successful in 12m9s
Le build et les tests passaient deja (Setup JDK, checkout, mvn verify tous verts). Seul l'upload d'artefact echouait : upload-artifact@v4 utilise la nouvelle API @actions/artifact v2, pas encore supportee par le backend Gitea Actions (GHESNotSupportedError). v3 utilise l'ancienne API, compatible. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
39 lines
824 B
YAML
39 lines
824 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
branches: [main]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: '17'
|
|
cache: maven
|
|
|
|
- name: Install Maven
|
|
run: |
|
|
which mvn || (sudo apt-get update && sudo apt-get install -y maven)
|
|
|
|
- name: Build and test
|
|
run: mvn -B clean verify
|
|
|
|
- name: Upload jars
|
|
if: success()
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: votenetwork-jars
|
|
path: |
|
|
velocity/target/VoteNetwork-Velocity.jar
|
|
spigot/target/VoteNetwork-Spigot.jar
|
|
retention-days: 14
|