Skip to content

Commit f3f1b65

Browse files
authored
Add an action to publish the grammar automatically (#220)
1 parent 2734945 commit f3f1b65

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publish_crate.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish on crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
env:
9+
CARGO_TERM_COLOR: always
10+
CARGO_INCREMENTAL: 0
11+
12+
jobs:
13+
publish:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
- name: Install rust
22+
uses: actions-rs/toolchain@v1
23+
with:
24+
toolchain: stable
25+
profile: minimal
26+
override: true
27+
28+
- name: Verify publish crate
29+
uses: katyo/publish-crates@v1
30+
with:
31+
dry-run: true
32+
33+
- name: Publish crate
34+
uses: katyo/publish-crates@v1
35+
with:
36+
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)