Skip to content

Commit

Permalink
change circleci config
Browse files Browse the repository at this point in the history
  • Loading branch information
Yarn committed Oct 12, 2019
1 parent d4066de commit d2c9b18
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ jobs:
PKG_CONFIG_ALLOW_CROSS: 1
steps:
- checkout
- attach_workspace:
at: ./release
- run:
name: Version information
command: rustc --version; cargo --version; rustup --version
Expand All @@ -35,7 +37,7 @@ jobs:
command: cargo build --release --target "$TARGET"
- run:
name: prepare release zip
command: mkdir release && zip --junk-paths "release/$CIRCLE_PROJECT_REPONAME-$CIRCLE_TAG-x86_64-unknown-linux-gnu.zip" ./target/x86_64-unknown-linux-gnu/release/listen-moe-cli
command: zip --junk-paths "release/$CIRCLE_PROJECT_REPONAME-$CIRCLE_TAG-x86_64-unknown-linux-gnu.zip" ./target/x86_64-unknown-linux-gnu/release/listen-moe-cli
- store_artifacts:
# path: ./target/x86_64-unknown-linux-gnu/release/listen-moe-cli
path: ./release
Expand All @@ -56,3 +58,21 @@ jobs:
- run:
name: Run all tests
command: cargo test --target "$TARGET"
publish-github-release:
docker:
- image: cibuilds/github:0.13
requires:
- build
filters:
branches:
ignore: /.*/
tags:
only: /^\d+\.\d+\.\d+.*$/
steps:
- attach_workspace:
at: ./release
- run:
name: Deploy Release
command: |
# ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} ./release/

0 comments on commit d2c9b18

Please sign in to comment.