maven.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # This workflow will build a Java project with Maven
  2. # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
  3. name: Java CI with Maven
  4. on:
  5. push:
  6. branches: [ master ]
  7. pull_request:
  8. branches: [ master ]
  9. jobs:
  10. build:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - uses: actions/checkout@v2
  14. - name: Set up JDK 1.8
  15. uses: actions/setup-java@v1
  16. with:
  17. java-version: 1.8
  18. - name: Build with Maven
  19. run: mvn -B clean package -Pdev -DskipTests --file pom.xml
  20. - name: upload build result
  21. run: mkdir staging && cp powerjob-server/powerjob-server-starter/target/*.jar staging/powerjob-server.jar && cp powerjob-client/target/*.jar staging/powerjob-client.jar && cp powerjob-worker-agent/target/*.jar staging/powerjob-agent.jar
  22. - uses: actions/upload-artifact@v1
  23. with:
  24. name: powerjob-server.jar
  25. path: staging/powerjob-server.jar
  26. - uses: actions/upload-artifact@v1
  27. with:
  28. name: powerjob-client.jar
  29. path: staging/powerjob-client.jar
  30. - uses: actions/upload-artifact@v1
  31. with:
  32. name: powerjob-agent.jar
  33. path: staging/powerjob-agent.jar