Skip to content
Permalink
Browse files
Stage to gcs
  • Loading branch information
apilloud committed Apr 22, 2019
1 parent 0d81a3a commit 9a2f2a85892bcd0466d74a255f7dcbe11bfeae07
Showing 3 changed files with 13 additions and 30 deletions.
@@ -9,7 +9,6 @@ env:
global:
- PYTHON_ARTIFACTS_DIR=python
- STAGING=https://dist.apache.org/repos/dist/dev/beam/${VERSION}/${PYTHON_ARTIFACTS_DIR}
- BEAM_SVN_DIR=https://dist.apache.org/repos/dist/dev/beam
- ZIP_FILE=apache-beam-${VERSION}.zip

- PLAT=x86_64
@@ -91,8 +90,11 @@ install:
script:
- build_wheel apache-beam-${VERSION} $PLAT

after_success:
- ls -lh ${TRAVIS_BUILD_DIR}/wheelhouse/

- source deploy_travis.sh
- deploy
deploy:
provider: gcs
access_key_id: ${ACCESS_KEY_ID}
secret_access_key: ${SECRET_ACCESS_KEY}
bucket: "beam-wheels-staging"
skip_cleanup: true
acl: public-read
local-dir: wheelhouse
@@ -45,12 +45,10 @@ There are 2 major parts in this repository.
* In travis build console > More options > Settings > Environment Variables:

* Add `VERSION` with 'Display value in build log' enabled (e.g.VERSION=2.6.0).
* Add `APACHE_USERNAME` and `APACHE_SECRET` with 'Display value in build log' disabled(which encrypt your credential).
* Add `ACCESS_KEY_ID` and `SECRET_ACCESS_KEY` with 'Display value in build log' disabled.
These values can be obtained from the [GCP Storage Settings](https://console.cloud.google.com/storage/settings?project=apache-beam-testing)
under the interoperability tab.

__NOTE__: If you have special characters in your credential, please escape them following the [guide](https://docs.travis-ci.com/user/encryption-keys/#note-on-escaping-certain-symbols) properly.
* Create and push a new branch(e.g. release_2_6_0) into your fork beam-wheels repository, which will trigger the travis build.

* Create and push a new branch(e.g. release_2_6_0) into your folk beam-wheels repository, which will trigger the travis build.

* Confirm that build successful and wheels get staged on dist.apache.org.

* Delete your apache credential in travis environment.
* Confirm that build successful and wheels get staged in beam-wheels-staging.

This file was deleted.

0 comments on commit 9a2f2a8

Please sign in to comment.