Files
ajQueue/.gitlab-ci.yml
T
ajgeiss0702 f29c9502c5 whoops
2021-08-29 16:09:38 -07:00

65 lines
1.2 KiB
YAML

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