Skip to content

Commit 61d5021

Browse files
committed
Add workflow to publish crate
1 parent 740a73c commit 61d5021

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish Crate
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
jobs:
12+
publish:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: stable
19+
override: true
20+
- uses: katyo/publish-crates@v2
21+
with:
22+
dry-run: ${{ github.event_name != 'push' }}
23+
ignore-unpublished-changes: true

0 commit comments

Comments
 (0)