Merge branch 'main' of https://github.com/potzplitz/ExtremeDemonList
This commit is contained in:
commit
1efe46def8
1 changed files with 10 additions and 11 deletions
21
.github/workflows/maven.yml
vendored
21
.github/workflows/maven.yml
vendored
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
name: Java Maven Build & Publish Artifact
|
name: Java Maven Build & Publish Artifact
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -10,9 +8,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_test:
|
build_test:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
|
@ -23,20 +19,23 @@ jobs:
|
||||||
cache: maven
|
cache: maven
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
run: mvn -B package --file pom.xml
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: packaged-jar
|
||||||
|
path: target/*.jar
|
||||||
|
|
||||||
publish-job:
|
publish-job:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build_test
|
needs: build_test
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: packaged-jar
|
||||||
|
path: staging
|
||||||
- uses: actions/setup-java@v3
|
- uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
- run: mvn --batch-mode --update-snapshots verify
|
# Hier können Sie weitere Schritte hinzufügen, um das Artefakt zu verwenden
|
||||||
- run: mkdir staging && cp target/*.jar staging
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: Package
|
|
||||||
path: staging
|
|
||||||
|
|
Loading…
Reference in a new issue