Skip to content

Commit

Permalink
update ci
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Sep 28, 2021
1 parent ad64107 commit f75ed76
Showing 1 changed file with 1 addition and 22 deletions.
23 changes: 1 addition & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,25 +67,4 @@ jobs:
uses: codecov/codecov-action@v1.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true

publish_on_crates_io:
name: Publish on crates.io
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags') # Only on tags
needs:
- build
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
- name: Run cargo login
uses: actions-rs/cargo@v1
with:
command: login
args: ${{ secrets.CRATES_IO_TOKEN }}
- name: Run cargo publish
uses: actions-rs/cargo@v1
with:
command: publish
fail_ci_if_error: true

0 comments on commit f75ed76

Please sign in to comment.