Skip to content

Commit c80e21d

Browse files
added beta stage (#272)
* added beta stage
1 parent 4d15680 commit c80e21d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ stages:
2020
- 'Test Build using latest tag (no upload)'
2121
- 'Build, Upload and Publish (draft)'
2222
- 'Test github release assets'
23+
- 'Publish (beta)'
2324
- 'Publish (real)'
2425
- 'Readme-sync-preview'
2526
- 'Readme-sync'
@@ -219,6 +220,26 @@ jobs:
219220
# how to use hub: https://hub.github.com/hub.1.html
220221
- hub release edit --draft=false -m "" ${TRAVIS_TAG}
221222

223+
- stage: 'Publish (beta)'
224+
if: type = push AND tag IS present AND tag =~ /^v[0-9]+\.[0-9]+\.[0-9]+\-beta+[0-9]?$/
225+
name: publish beta
226+
os: linux
227+
env: APP_VERSION=${TRAVIS_TAG#v}
228+
229+
before_install:
230+
- ./scripts/pull_travis_ci_tools.sh
231+
232+
install:
233+
# installs hub to ~/bin
234+
- $HOME/travisci-tools/release_github/install_hub.sh
235+
- export PATH=$HOME/bin:$HOME/travisci-tools/slack:$PATH
236+
237+
before_script: skip
238+
239+
script:
240+
# how to use hub: https://hub.github.com/hub.1.html
241+
- hub release edit --draft=true -m "" ${TRAVIS_TAG}
242+
222243
- stage: 'Readme-sync-preview'
223244
# publishes changes in your docs pull request (ie, contains changes to /docs/readme-sync directory) to https://rollouts-sandbox-doc-test.readme.io/ for previewing before
224245
# committing to master

0 commit comments

Comments
 (0)