Skip to content

Commit

Permalink
Added artifact to github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ginkogruen committed Oct 17, 2024
1 parent 81a7477 commit 989cb92
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,26 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
#- run: mvn --batch-mode --update-snapshots verify

publish-job:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
needs: build_test
steps:
- uses: actions/checkout@v3
- 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@v4
- uses: actions/upload-artifact@v3
with:
name: Package
path: staging


# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
#- name: Update dependency graph
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

0 comments on commit 989cb92

Please sign in to comment.