Skip to content

Commit

Permalink
Add GitHub actions for publishing to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
internetionals committed Mar 2, 2021
1 parent dc65b2f commit f5b795c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/crates-io.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish crate on crates.io
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v1
with:
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit f5b795c

Please sign in to comment.