Fetch version from branch.
diff --git a/.travis.yml b/.travis.yml
index 5516230..2338541 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -7,6 +7,7 @@
env:
global:
+ - VERSION=$(echo ${TRAVIS_BRANCH} | sed 's/release-//')
- PYTHON_ARTIFACTS_DIR=python
- STAGING=https://dist.apache.org/repos/dist/dev/beam/${VERSION}/${PYTHON_ARTIFACTS_DIR}
- ZIP_FILE=apache-beam-${VERSION}.zip
@@ -98,3 +99,5 @@
skip_cleanup: true
acl: public-read
local-dir: wheelhouse
+ on:
+ all_branches: true
diff --git a/README.md b/README.md
index 79752d5..9575c1b 100644
--- a/README.md
+++ b/README.md
@@ -44,11 +44,10 @@
* 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 `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.
-* 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 fork beam-wheels repository, which will trigger the travis build of that version.
* Confirm that build successful and wheels get staged in beam-wheels-staging.