Skip to content

Commit f1fde19

Browse files
Asheem MamoowalaArindam Bose
Asheem Mamoowala
and
Arindam Bose
authored
Include steps for publishing to AWS/CDN (#1002)
* Include steps for publishing to AWS/CDN * Update CDN publishing docs Co-authored-by: Arindam Bose <arindam.bose@mapbox.com>
1 parent 04940d5 commit f1fde19

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var map = new mapboxgl.Map({
5656
var Draw = new MapboxDraw();
5757

5858
// Map#addControl takes an optional second argument to set the position of the control.
59-
// If no position is specified the control defaults to `top-right`. See the docs
59+
// If no position is specified the control defaults to `top-right`. See the docs
6060
// for more details: https://docs.mapbox.com/mapbox-gl-js/api/#map#addcontrol
6161

6262
map.addControl(Draw, 'top-left');
@@ -103,6 +103,16 @@ git push
103103
npm publish
104104
```
105105

106+
To CDN
107+
108+
```
109+
# make sure you are authenticated for AWS
110+
git checkout v{x.y.z}
111+
yarn install
112+
yarn run prepublish
113+
aws s3 cp --recursive --acl public-read dist s3://mapbox-gl-js/plugins/mapbox-gl-draw/v{x.y.z}
114+
```
115+
106116
Update the version number in [the GL JS example](https://github.com/mapbox/mapbox-gl-js/blob/publisher-production/docs/pages/example/mapbox-gl-draw.html).
107117

108118
### Naming actions

0 commit comments

Comments
 (0)