Skip to content

Commit faa0879

Browse files
Merge pull request #361 from gwt-plugins/brandon-update
Add production zip upload to the release script.
2 parents 201a4e7 + 80e8600 commit faa0879

7 files changed

Lines changed: 47 additions & 5 deletions

File tree

build-deploy-release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ mvn clean install
99
cd ..
1010

1111

12-
# upload
12+
# upload repo
1313
sh ./repo/upload-release.sh
1414

15+
16+
# upload release zip
17+
sh ./repo/upload-release-zip.sh

deploy-release-zip.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
3+
# upload release zip
4+
sh ./repo/upload-release-zip.sh

eclipse/oxygen/gwt-eclipse-oxygen.target

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<?pde?>
33
<!-- generated with https://github.com/mbarbero/fr.obeo.releng.targetplatform -->
4-
<target name="GWT Eclipse Plugin Oxygen" sequenceNumber="1499971792">
4+
<target name="GWT Eclipse Plugin for Oxygen" sequenceNumber="1501537180">
55
<locations>
66
<location includeMode="planner" includeAllPlatforms="false" includeSource="true" includeConfigurePhase="false" type="InstallableUnit">
77
<unit id="org.eclipse.license.feature.group" version="1.0.1.v20140414-1359"/>

repo/upload-release-zip.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
# upload release zip
3+
4+
# install utils
5+
# https://cloud.google.com/storage/docs/gsutil_install
6+
7+
# Note: allow the public to read the bucket
8+
# gsutil defacl ch -u AllUsers:R gs://gwt-eclipse-plugin
9+
# gsutil defacl set public-read gs://gwt-eclipse-plugin
10+
# gsutil -m acl ch -g AllUsers:R -r gs://gwt-eclipse-plugin
11+
12+
cd repo/target
13+
14+
mkdir downloads
15+
16+
# rename artifact
17+
cp repo-3.0.0-SNAPSHOT.zip ./downloads/repo-3.0.0.zip
18+
19+
# upload snapshot
20+
# url locaiton: http://storage.googleapis.com/gwt-eclipse-plugin/v2/release
21+
gsutil cp -r ./downloads gs://gwt-eclipse-plugin/v3/downloads
22+
23+
24+
# go back to original location
25+
cd ../..

repo/upload-release.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,7 @@ cd repo/target/repository
1313

1414
# upload snapshot
1515
# url locaiton: http://storage.googleapis.com/gwt-eclipse-plugin/v2/release
16-
gsutil cp -r . gs://gwt-eclipse-plugin/v3/release
16+
gsutil cp -r . gs://gwt-eclipse-plugin/v3/release
17+
18+
# return to original location
19+
cd ../../..

repo/upload-site-root.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,7 @@ cd repo/target/repository
1212

1313
# upload snapshot
1414
# http://storage.googleapis.com/gwt-eclipse-plugin
15-
gsutil cp index.html gs://gwt-eclipse-plugin
15+
gsutil cp index.html gs://gwt-eclipse-plugin
16+
17+
# return to original location
18+
cd ../../..

repo/upload-snapshot.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,8 @@ cd repo/target/repository
1212

1313
# upload snapshot
1414
# url locaiton: http://storage.googleapis.com/gwt-eclipse-plugin/snapshot
15-
gsutil cp -r . gs://gwt-eclipse-plugin/v3/snapshot
15+
gsutil cp -r . gs://gwt-eclipse-plugin/v3/snapshot
16+
17+
18+
# return to original location
19+
cd ../../..

0 commit comments

Comments
 (0)