File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,11 +128,12 @@ jobs:
128128 name : Upload libraries to Mapbox SDK Registry
129129 command : |
130130 make sdk-registry-upload
131- # This is not yet supported, still need to be able to authenticate CI to create a Github pull request.
132- # - run:
133- # name: Create pull request in api-downloads
134- # command: |
135- # make sdk-registry-publish
131+ - run :
132+ name : Create pull request in api-downloads
133+ command : |
134+ export GITHUB_TOKEN=$(./mbx-ci github writer private token)
135+ git config --global user.email no-reply@mapbox.com && git config --global user.name mapbox-ci
136+ make sdk-registry-publish
136137 publish-documentation :
137138 environment :
138139 - MBX_CI_DOMAIN : o619qyc20d.execute-api.us-east-1.amazonaws.com
Original file line number Diff line number Diff line change @@ -34,7 +34,12 @@ sdk-registry-upload:
3434 ./gradlew mapboxSDKRegistryUpload
3535
3636sdk-registry-publish :
37- ./gradlew mapboxSDKRegistryPublishAll
37+ if [ -z " $( GITHUB_TOKEN) " ]; then \
38+ echo " GITHUB_TOKEN env variable has to be set" ; \
39+ else \
40+ python3 -m pip install git-pull-request; \
41+ ./gradlew mapboxSDKRegistryPublishAll; \
42+ fi
3843
3944sdk-registry-publish-snapshot :
4045 ./gradlew mapboxSDKRegistryUpload -Psnapshot=true
Original file line number Diff line number Diff line change 2626 artifactory : ' 4.9.3' ,
2727 kotlin : ' 1.3.72' ,
2828 shadowJar : ' 4.0.4' ,
29- mapboxSdkRegistry : ' 0.4 .0'
29+ mapboxSdkRegistry : ' 0.7 .0'
3030 ]
3131
3232 dependenciesList = [
You can’t perform that action at this time.
0 commit comments