Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
omeryldzk committed Aug 15, 2024
2 parents f08c272 + cd23174 commit 3d199ce
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ jobs:
- name: Publish to GitHub Packages Apache Maven
run: |
if [ "${{ github.ref_name }}" == "master" ]; then
mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file backend/pom.xml
mvn -X deploy -s $GITHUB_WORKSPACE/settings.xml --file backend/pom.xml \
-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/omeryldzk/spring-boot-atmProjecte
elif [ "${{ github.ref_name }}" == "localhost" ]; then
mvn deploy -s $GITHUB_WORKSPACE/settings.xml --file local_backend/pom.xml
mvn -X deploy -s $GITHUB_WORKSPACE/settings.xml --file local_backend/pom.xml \
-DaltDeploymentRepository=github::default::https://maven.pkg.github.com/omeryldzk/spring-boot-atmProjecte
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 3d199ce

Please sign in to comment.