-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: move to github action to publish on crates.io
- Loading branch information
1 parent
6ea4f37
commit e08509b
Showing
5 changed files
with
43 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: publish | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
publish: | ||
name: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: install rust stable | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
profile: minimal | ||
toolchain: stable | ||
override: true | ||
|
||
- name: publish to crates.io | ||
run: ./ci/publish.sh | ||
env: | ||
CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
echo "Publishing mock-it_codegen ..." | ||
cd mock-it_codegen/ | ||
cargo publish --token ${CRATES_IO_API_TOKEN} | ||
echo "Sucessfully published mock-it_codegen" | ||
|
||
echo "Waiting 10 seconds for mock-it_codegen to be available ..." | ||
sleep 10 | ||
|
||
echo "Publishing mock-it ..." | ||
cd ../ | ||
cargo publish --token ${CRATES_IO_API_TOKEN} | ||
echo "Sucessfully published mock-it" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Mock It Code Generation | ||
|
||
Generate mocks based on traits for `mock-it`! |