Fix build

This commit is contained in:
Dreeam 2024-01-30 10:30:45 -05:00
parent 0272c74794
commit d1dc7cb260
2 changed files with 10 additions and 2 deletions

View File

@ -28,10 +28,14 @@ jobs:
distribution: 'temurin' distribution: 'temurin'
cache: maven cache: maven
- name: Build with Maven - name: Build with Maven
run: mvn compile & mvn package run: mvn clean package -Pfull
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive # Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph - name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6 uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
- run: mkdir staging && cp target/*.jar staging - run: mkdir staging && cp target/*.jar staging
- uses: actions/upload-artifact@v3 - name: Upload Citizens2-CN
uses: actions/upload-artifact@main
with:
name: Citizens2-CN
path: dist/target/*.jar

View File

@ -28,6 +28,10 @@
<id>citizens-repo</id> <id>citizens-repo</id>
<url>https://maven.citizensnpcs.co/repo</url> <url>https://maven.citizensnpcs.co/repo</url>
</repository> </repository>
<repository>
<id>nms-repo</id>
<url>https://repo.codemc.io/repository/nms/</url>
</repository>
</repositories> </repositories>
<build> <build>
<defaultGoal>clean package install</defaultGoal> <defaultGoal>clean package install</defaultGoal>