Update maven.yml
This commit is contained in:
parent
9580e1b62d
commit
820bdab69f
1 changed files with 14 additions and 4 deletions
18
.github/workflows/maven.yml
vendored
18
.github/workflows/maven.yml
vendored
|
@ -10,15 +10,19 @@ jobs:
|
|||
build_test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '17'
|
||||
distribution: 'temurin'
|
||||
cache: maven
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
||||
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
|
@ -29,12 +33,18 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: build_test
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@v3
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Download artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: packaged-jar
|
||||
path: staging
|
||||
|
||||
- name: List files in staging directory
|
||||
run: ls staging
|
||||
|
||||
create_release:
|
||||
needs: publish-job
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -43,7 +53,7 @@ jobs:
|
|||
steps:
|
||||
- name: Extract Artifact
|
||||
run: |
|
||||
unzip -o staging/packaged-jar/*.jar -d extracted-jar
|
||||
unzip -o staging/*.jar -d extracted-jar
|
||||
- name: Create Release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
|
|
Loading…
Reference in a new issue