Skip to content

Commit

Permalink
Create publish_cargo.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammad-fiaz authored Jan 9, 2024
1 parent b0783f3 commit 132137c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish_cargo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish to Crates.io

on:
release:
types:
- created

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main

- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable

- name: Publish to Crates.io
uses: softprops/action-cargo-publish@v1
with:
token: ${{ secrets.CRATES_PUBLISH_TOKEN }}

0 comments on commit 132137c

Please sign in to comment.