Skip to content

Commit 39f1c60

Browse files
author
Mike Elsmore
authored
Add a workflow to publish on tag (#26)
1 parent a6387c1 commit 39f1c60

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
on:
2+
push:
3+
# Pattern matched against refs/tags
4+
tags:
5+
- '*' # Push events to every tag not containing /
6+
workflow_dispatch:
7+
name: Publish
8+
jobs:
9+
publish:
10+
name: Publish
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout sources
14+
uses: actions/checkout@v2
15+
16+
- name: Install stable toolchain
17+
uses: actions-rs/toolchain@v1
18+
with:
19+
profile: minimal
20+
toolchain: stable
21+
override: true
22+
- run: cargo publish --token ${CRATES_TOKEN}
23+
env:
24+
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 commit comments

Comments
 (0)