Skip to content
This repository was archived by the owner on Jul 3, 2020. It is now read-only.

Automatically publish new versions to crates.io #247

Merged
merged 2 commits into from
Sep 18, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ jobs:
command: |
echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_LOGIN --password-stdin
docker push $IMAGE_NAME
publish-crates-io:
working_directory: ~/android-rs-glue
environment:
IMAGE_NAME: tomaka/cargo-apk
docker:
- image: docker:stable
steps:
- run: apt-get -qq update && apt-get install -y git
- checkout
- run: cd ./cargo-apk && cargo publish --token $CRATESIO_TOKEN
- run: cd ./glue && cargo publish --token $CRATESIO_TOKEN
workflows:
version: 2
all:
Expand All @@ -46,3 +57,9 @@ workflows:
filters:
branches:
only: master
- publish-crates-io:
requires:
- build-and-test
filters:
branches:
only: master