File tree Expand file tree Collapse file tree 1 file changed +41
-5
lines changed Expand file tree Collapse file tree 1 file changed +41
-5
lines changed Original file line number Diff line number Diff line change 11version : 2
22jobs :
33 build :
4- working_directory : /kotlin-native-lambda-runtime
4+ working_directory : ~ /kotlin-native-lambda-runtime
55 docker :
66 - image : c1phr/kotlin-native-lambda-runtime-compiler:latest
77 steps :
88 - checkout
9+ - restore_cache :
10+ key : deps-{{ checksum "build.gradle" }}
911 - run :
1012 name : Build runtime
1113 command : |
1214 ./gradlew clean build linuxTest
15+ - save_cache : # saves the project dependencies
16+ paths :
17+ - ~/.gradle
18+ key : deps-{{ checksum "build.gradle" }}
19+ - persist_to_workspace :
20+ root : .
21+ paths :
22+ - .
23+ deploy :
24+ working_directory : ~/kotlin-native-lambda-runtime
25+ docker :
26+ - image : c1phr/kotlin-native-lambda-runtime-compiler:latest
27+ steps :
28+ - attach_workspace :
29+ at : .
1330 - deploy :
1431 name : Publish to Bintray
15- command : |
16- if [ "${CIRCLE_BRANCH}" == "master" ]; then
17- ./gradlew generatePomFileForKotlinMultiplatformPublication generateMetadataFileForKotlinMultiplatformPublication bintrayUpload bintrayPublish -PbuildNum="1.0.${CIRCLE_BUILD_NUM}"
18- fi
32+ command : ./gradlew generatePomFileForKotlinMultiplatformPublication generateMetadataFileForKotlinMultiplatformPublication bintrayUpload bintrayPublish -PbuildNum="${CIRCLE_TAG}"
33+
34+ workflows :
35+ version : 2
36+ build :
37+ jobs :
38+ - build
39+ release :
40+ jobs :
41+ - build :
42+ filters :
43+ branches :
44+ ignore : /.*/
45+ tags :
46+ only : /^\d+\.\d+\.\d+$/
47+ - deploy :
48+ requires :
49+ - build
50+ filters :
51+ branches :
52+ only : master
53+ tags :
54+ only : /^\d+\.\d+\.\d+$/
You can’t perform that action at this time.
0 commit comments