Skip to content

Commit 088580b

Browse files
authored
Create publish.yml GHA (#5)
1 parent cca5a7b commit 088580b

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
workflow_dispatch:
3+
inputs:
4+
dry-run:
5+
description: 'If true, run with --dry-run'
6+
required: false
7+
default: false
8+
type: boolean
9+
10+
jobs:
11+
main:
12+
name: Publish a new version to crates.io
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: actions-rs/toolchain@v1
18+
with:
19+
toolchain: stable
20+
override: true
21+
- uses: katyo/publish-crates@v2
22+
with:
23+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
24+
dry-run: ${{ inputs.dry-run }}

0 commit comments

Comments
 (0)