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
|
||||
|
||||
on:
|
||||
|
@ -10,9 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build_test:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 17
|
||||
|
@ -23,20 +19,23 @@ jobs:
|
|||
cache: maven
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: packaged-jar
|
||||
path: target/*.jar
|
||||
|
||||
|
||||
publish-job:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build_test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: packaged-jar
|
||||
path: staging
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
- run: mvn --batch-mode --update-snapshots verify
|
||||
- run: mkdir staging && cp target/*.jar staging
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Package
|
||||
path: staging
|
||||
# Hier können Sie weitere Schritte hinzufügen, um das Artefakt zu verwenden
|
||||
|
|
Loading…
Reference in a new issue