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

Commit c76bee2

Browse files
authored
Automatically publish new versions to crates.io (#247)
* Automatically publish new versions to crates.io * Publish both crates
1 parent 642808a commit c76bee2

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.circleci/config.yml

+17
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,17 @@ jobs:
3535
command: |
3636
echo "$DOCKERHUB_PASSWORD" | docker login -u $DOCKERHUB_LOGIN --password-stdin
3737
docker push $IMAGE_NAME
38+
publish-crates-io:
39+
working_directory: ~/android-rs-glue
40+
environment:
41+
IMAGE_NAME: tomaka/cargo-apk
42+
docker:
43+
- image: docker:stable
44+
steps:
45+
- run: apt-get -qq update && apt-get install -y git
46+
- checkout
47+
- run: cd ./cargo-apk && cargo publish --token $CRATESIO_TOKEN
48+
- run: cd ./glue && cargo publish --token $CRATESIO_TOKEN
3849
workflows:
3950
version: 2
4051
all:
@@ -46,3 +57,9 @@ workflows:
4657
filters:
4758
branches:
4859
only: master
60+
- publish-crates-io:
61+
requires:
62+
- build-and-test
63+
filters:
64+
branches:
65+
only: master

0 commit comments

Comments
 (0)