Skip to content

Commit

Permalink
action: add auto cargo publish
Browse files Browse the repository at this point in the history
Signed-off-by: Peng Tao <[email protected]>
  • Loading branch information
bergwolf committed Aug 8, 2023
1 parent 34ee825 commit 6471bb4
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cargo-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Cargo Publish

on:
push:
branches:
- master
paths:
- '**Cargo.toml'
pull_request:
branches:
- master
paths:
- '**Cargo.toml'
workflow_dispatch:

steps:
- uses: actions/checkout@v3
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: katyo/publish-crates@v2
with:
dry-run: ${{ github.event_name != 'push' }}

0 comments on commit 6471bb4

Please sign in to comment.