diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index af1aba9..54e6042 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -1,6 +1,5 @@ name: Build and Publish -# TODO Remove develop on: push: branches: @@ -31,9 +30,10 @@ jobs: - name: Angular build run: npm run --prefix website build-production -# - name: Generate Javadoc -# run: mvn javadoc:aggregate - - name: Maven package -# Windows: ./mvnw compile jib:build "-DdockerHub.username=${{secrets.DOCKER_USERNAME}}" "-DdockerHub.password=${{secrets.DOCKER_PASSWORD}}" - run: mvn package -DdockerHub.username=${{secrets.DOCKER_USERNAME}} -DdockerHub.password=${{secrets.DOCKER_PASSWORD}} \ No newline at end of file + run: | + if [[ "${{github.ref}}" == "refs/heads/develop" ]]; then + mvn package + else + mvn package -DdockerHub.username=${{secrets.DOCKER_USERNAME}} -DdockerHub.password=${{secrets.DOCKER_PASSWORD}} + fi \ No newline at end of file