Files
ajQueue/.gitlab-ci.yml
T
ajgeiss0702 64fb4b9d35 bruh
2021-06-14 13:15:35 -07:00

58 lines
960 B
YAML

image: gradle:6.8.2-jdk8
# Cache downloaded dependencies and plugins between builds.
# To keep cache across branches add 'key: "$CI_JOB_NAME"'
cache:
paths:
- .gradle
- ~/.gradle
build:
stage: build
script:
- rm -rf build
- ./gradlew shadowJar
artifacts:
paths:
- build/libs
pages:
stage: build
image: gradle:6.8.3-jdk15
only:
- master
script:
- ./gradlew javadoc
- mv build/docs/javadoc public
artifacts:
paths:
- public
test:
stage: test
dependencies:
- build
script:
- ./gradlew test
deploy to maven repo:
stage: deploy
only:
- master
dependencies:
- build
script:
- ./gradlew publish --stacktrace
upload to updater:
stage: deploy
only:
- master
dependencies:
- build
script:
- cd build/libs
- files=(*)
- curl -i -F "submit=true" -F "secret=$UPLOAD_SECRET" -F "file=@${files[0]}" https://ajg0702.us/pl/updater/upload.php