Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
Publish dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
CiroZDP committed Sep 14, 2024
1 parent 5ed593c commit 6707ca1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,24 @@ jobs:
MAVEN_PASSWORD: ${{ secrets.SECRET_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SECRET_TOKEN }}

- name: Pack dependencies
id: packdep
run: |
mvn dependency:copy-dependencies -DoutputDirectory=target/dependencies
cd target/dependencies
zip -r ../dependencies.zip .
cd ../..
- uses: ./.github/actions/upload_build
name: Publish client artifact
if: ${{ always() && steps.compile.outcome == 'success' }}
with:
SOURCE_FILE: 'target/client.jar'
DEST_NAME: 'client.jar'

- uses: ./.github/actions/upload_build
name: Publish dependencies artifact
if: ${{ always() && steps.packdep.outcome == 'success' }}
with:
SOURCE_FILE: 'target/dependencies.zip'
DEST_NAME: 'dependencies.zip'

0 comments on commit 6707ca1

Please sign in to comment.