Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Commit 4de5ab4

Browse files
Create JavaCI.yml
1 parent 869c38e commit 4de5ab4

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/JavaCI.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: JavaCI
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
7+
strategy:
8+
matrix:
9+
java: [ '17' ]
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Set up JDK ${{ matrix.java }}
13+
uses: actions/setup-java@v4
14+
with:
15+
java-version: ${{ matrix.java }}
16+
distribution: 'temurin'
17+
- name: Build with Maven
18+
run: |
19+
mvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=appJava/libs/DS-Desktop-Notify.jar -DgroupId=ds.descktop -DartifactId=DS-Desktop-Notify -Dversion=v0.91 -Dpackaging=jar -DgeneratePom=true
20+
mvn -B package --file appJava/pom.xml
21+
- name: UploadArtifact
22+
uses: actions/upload-artifact@v4
23+
with:
24+
name: CreadorCraftLan-Java
25+
path: appJava/target/CreadorCraftLan-1.0.0-beta.jar

0 commit comments

Comments
 (0)