Skip to content

Commit

Permalink
Extract release script into a file
Browse files Browse the repository at this point in the history
  • Loading branch information
sam701 committed Oct 2, 2019
1 parent 9e43a69 commit 09842a0
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 10 deletions.
14 changes: 14 additions & 0 deletions .travis-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set -eu

cargo build --release

rm -r target/deploy
mkdir -p target/deploy

cd target/release
zip ../deploy/awscredx-${TRAVIS_OS_NAME}.zip awscredx$exe_suffix
cd ../..

ls -l target/deploy
13 changes: 5 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@ jobs:
- stage: release
name: linux
os: linux
script: &script-unix
- cargo build --release
- mkdir -p target/deploy
- cd target/release; zip ../deploy/awscredx-${TRAVIS_OS_NAME}.zip awscredx
script: ./.travis-release.sh
deploy: &deploy
provider: releases
api_key:
Expand All @@ -35,14 +32,14 @@ jobs:

- name: osx
os: osx
script: *script-unix
script: ./.travis-release.sh
deploy: *deploy

- name: windows
os: windows
env:
- exe_suffix=.exe
script:
- cargo build --release
- mkdir -p target/deploy
- choco install zip
- cd target/release; zip ../deploy/awscredx-${TRAVIS_OS_NAME}.zip awscredx.exe
- ./.travis-release.sh
deploy: *deploy
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "awscredx"
version = "0.2.11"
version = "0.2.12"
authors = ["Alexei Samokvalov <[email protected]>"]
edition = "2018"

Expand Down

0 comments on commit 09842a0

Please sign in to comment.