Skip to content
This repository was archived by the owner on Apr 5, 2024. It is now read-only.

Commit 8997aac

Browse files
committed
Auto merge of #311 - dario23:crates-io-publish, r=JohnTitor
Add publish job for crates.io Triggered by tag push or manually from the actions interface. fixes #300
2 parents 2406ebf + 805bba4 commit 8997aac

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to crates.io
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
# this is the "entry point" for manually running a workflow
8+
workflow_dispatch:
9+
10+
jobs:
11+
publish:
12+
name: Publish to crates.io
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: publish
19+
run: cargo publish --token "${CRATES_IO_TOKEN}"
20+
env:
21+
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

0 commit comments

Comments
 (0)