.gitlab-ci.yml 739 B

12345678910111213141516171819202122232425262728293031323334
  1. image: eclipse-temurin:8-jdk
  2. before_script:
  3. - apt-get --quiet update --yes
  4. - apt-get --quiet install --yes ant
  5. stages:
  6. - build
  7. - upload
  8. build:
  9. stage: build
  10. script:
  11. - cd server && ant compile_core && ant compile_plugins && cd ../
  12. - cd Client_Base && ant compile && cd ../
  13. - cd PC_Launcher && ant compile && cd ../
  14. artifacts:
  15. paths:
  16. - PC_Launcher/OpenRSC.jar
  17. when: on_success
  18. expose_as: 'OpenRSC jar' # (Optional) provides a direct download link in the job UI
  19. launcherUpload:
  20. stage: upload
  21. script:
  22. - echo "Uploading OpenRSC.jar"
  23. needs:
  24. - build
  25. artifacts:
  26. paths:
  27. - PC_Launcher/OpenRSC.jar
  28. - PC_Launcher/vet.rsc.OpenRSC.Launcher.appdata.xml
  29. when: on_success