Fix auto-publishing of pre-bundled releases

This commit is contained in:
Daniel Rudolf 2018-04-07 22:14:14 +02:00
parent 25ada4a8df
commit 822d58db60
No known key found for this signature in database
GPG key ID: A061F02CD8DE4538

View file

@ -33,12 +33,13 @@ jobs:
- deploy.sh
before_deploy:
- '[ "$TRAVIS_TAG" == "v$(php -r "require_once(\"lib/Pico.php\"); echo Pico::VERSION;")" ]'
- create-release.sh "pico-release-$TRAVIS_TAG.tar.gz"
- create-release.sh "$TRAVIS_BUILD_DIR/pico-release-$TRAVIS_TAG.tar.gz"
deploy:
provider: releases
api_key: ${GITHUB_OAUTH_TOKEN}
file: pico-release-$TRAVIS_TAG.tar.gz
skip_cleanup: true
name: Version $TRAVIS_TAG
draft: true
on:
tags: true