Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 5eee9fd

Browse files
author
Jayant Krishnamurthy
committed
Github Action for publishing to crates.io
1 parent eccc161 commit 5eee9fd

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
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+
name: Publish to crates.io
2+
3+
on:
4+
release:
5+
types: [ created ]
6+
7+
jobs:
8+
publish:
9+
name: Publish
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v2
14+
15+
- name: Install stable toolchain
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
profile: minimal
19+
toolchain: stable
20+
override: true
21+
22+
- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
23+
env:
24+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyth-client"
3-
version = "0.2.2"
3+
version = "0.2.3-beta.0"
44
authors = ["Richard Brooks"]
55
edition = "2018"
66
license = "Apache-2.0"

0 commit comments

Comments
 (0)