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

Commit

Permalink
Github Action for publishing to crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayant Krishnamurthy committed Dec 29, 2021
1 parent eccc161 commit 5eee9fd
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to crates.io

on:
release:
types: [ created ]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- run: cargo publish --token ${CARGO_REGISTRY_TOKEN}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pyth-client"
version = "0.2.2"
version = "0.2.3-beta.0"
authors = ["Richard Brooks"]
edition = "2018"
license = "Apache-2.0"
Expand Down

0 comments on commit 5eee9fd

Please sign in to comment.