Skip to content

Commit ddec6e9

Browse files
committed
update sdk registry plugin
1 parent 18ac81d commit ddec6e9

3 files changed

Lines changed: 13 additions & 7 deletions

File tree

.circleci/config.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ sdk-registry-upload:
3434
./gradlew mapboxSDKRegistryUpload
3535

3636
sdk-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

3944
sdk-registry-publish-snapshot:
4045
./gradlew mapboxSDKRegistryUpload -Psnapshot=true

gradle/dependencies.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ext {
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 = [

0 commit comments

Comments
 (0)