Fix automatic deploy.
This should fix deploying release artifacts and gh-pages for the documentation. Secrets should now be configured in the UI for travis and appveyor. This also removes some of the appveyor jobs, since they aren't really necessary, and there are limited jobs on rust-lang-libs.
This commit is contained in:
parent
c3284a2ae9
commit
6a8a5b7642
14
.travis.yml
14
.travis.yml
|
@ -51,18 +51,26 @@ script:
|
||||||
fi
|
fi
|
||||||
|
|
||||||
before_deploy:
|
before_deploy:
|
||||||
|
- cargo run -- build book-example
|
||||||
- sh ci/before_deploy.sh
|
- sh ci/before_deploy.sh
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: releases
|
- provider: releases
|
||||||
api_key:
|
api_key: "$GITHUB_TOKEN"
|
||||||
- secure: cURRWBr034iqBz/ifD7uOunBfNR30YxIXfgLX0osWz+iafkVbhDGYYz9sBmRraqO2P7L2koEXMADVb/md1kI2+ykiq/ml+l9zuEAZPVmvSGUN7ZD+7s+lu3l5OBPG5z175T+b2q2q2m8XVR7TW20ra4QbE0bq06KAoOyjSgQVBTSCYsL9uTsGwiVRMEqqJT/BmKhKJNkpGsTKyBSKkOXvfeAAbE260vXUDEN9TYdJ3fvteRrpwLX56ee64gIZUq0RjDc4SKIEqilM6iUtNMvurqaewYNGkiXKRruV6BPCHxEHo6NNT46kOJLBJTf7gZw//dWhSoWpg9P0gdAnPWm407kSa3F7aJ1eRShAFQ4BLyfz9efTqm+jP3fOp7Mm7igSh9w6caSRuOnSsUf5+raRQ8E5Y9HsWGzzpZQk24Fx9EGZ04EeDSdpZAFz+jcbMpHf8t2p4CEx0CCNwYvKx6EydMKbMF5QteQ8SQkXNLhv7Rz2OgtXWYZPRVCMfQfOplsi2InsLCrQxTgwh+6u654SqVSgaHG+IncEAxBrdWy4rHcg7qereUcKfcY3k96vaDxdn/T2c00Ig0aNFR91YnixGMd6J6tQgDcRK9jh6fUm1CCBE9hT+pNUmtgYKuWBoLZexUZFFnfuBed0WciBot1bGDDamndqKq0jJiAzg+GMHk=
|
|
||||||
file_glob: true
|
file_glob: true
|
||||||
file: "$CRATE_NAME-$TRAVIS_TAG-$TARGET.*"
|
file: "$CRATE_NAME-$TRAVIS_TAG-$TARGET.*"
|
||||||
on:
|
on:
|
||||||
condition: "$TRAVIS_RUST_VERSION = stable"
|
condition: "$TRAVIS_RUST_VERSION = stable"
|
||||||
tags: true
|
tags: true
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
- provider: pages
|
||||||
|
local_dir: book-example/book
|
||||||
|
skip_cleanup: true
|
||||||
|
github_token: "$GITHUB_TOKEN"
|
||||||
|
keep_history: true
|
||||||
|
on:
|
||||||
|
condition: $TRAVIS_OS_NAME = "linux" && $TRAVIS_RUST_VERSION = "stable"
|
||||||
|
tags: true
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
|
|
|
@ -7,14 +7,7 @@ environment:
|
||||||
RUST_CHANNEL: stable
|
RUST_CHANNEL: stable
|
||||||
- TARGET: x86_64-pc-windows-msvc
|
- TARGET: x86_64-pc-windows-msvc
|
||||||
RUST_CHANNEL: stable
|
RUST_CHANNEL: stable
|
||||||
# Beta channel
|
|
||||||
- TARGET: i686-pc-windows-msvc
|
|
||||||
RUST_CHANNEL: beta
|
|
||||||
- TARGET: x86_64-pc-windows-msvc
|
|
||||||
RUST_CHANNEL: beta
|
|
||||||
# Nightly channel
|
# Nightly channel
|
||||||
- TARGET: i686-pc-windows-msvc
|
|
||||||
RUST_CHANNEL: nightly
|
|
||||||
- TARGET: x86_64-pc-windows-msvc
|
- TARGET: x86_64-pc-windows-msvc
|
||||||
RUST_CHANNEL: nightly
|
RUST_CHANNEL: nightly
|
||||||
|
|
||||||
|
@ -52,7 +45,7 @@ deploy:
|
||||||
description: 'Windows release'
|
description: 'Windows release'
|
||||||
artifact: /.*\.zip/
|
artifact: /.*\.zip/
|
||||||
auth_token:
|
auth_token:
|
||||||
secure: QQhjKVyz7mpjlyGhlXytbFQQfKFQWTahHkD+B0NzIUoEVqO7ZLWjnoWasvLqW4nE
|
secure: $(GITHUB_TOKEN)
|
||||||
provider: GitHub
|
provider: GitHub
|
||||||
on:
|
on:
|
||||||
RUST_CHANNEL: stable
|
RUST_CHANNEL: stable
|
||||||
|
|
Loading…
Reference in New Issue