Skip to content

Commit

Permalink
Add auto-publish to crates.io for 'release' CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Nov 20, 2019
1 parent fbef657 commit 10a91a3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
with:
ref: ${{ github.ref }}

- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Parse release version
id: release
run: |
Expand All @@ -37,3 +42,9 @@ jobs:
[API Docs](https://docs.rs/tracerr/${{ steps.release.outputs.VERSION }})
[Changelog](${{ steps.changelog.outputs.LINK }})
prerelease: ${{ contains(steps.release.outputs.VERSION, '-') }}

- name: Release on crates.io
uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CRATES_IO_TOKEN }}
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ keywords = ["backtrace", "error", "stacktrace", "tracing", "tracerr"]
categories = []
include = ["/src/", "/Cargo.toml", "/CHANGELOG.md", "/LICENSE.md", "/README.md"]

[package.metadata.docs.rs]
features = ["failure"]

[dependencies]
dm = { version = "0.99.2", package = "derive_more" }
[dependencies.failure]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ tracerr
[![Latest version](https://img.shields.io/crates/v/tracerr)](https://crates.io/crates/tracerr)
![License](https://img.shields.io/crates/l/tracerr)
![Unsafe forbidden](https://img.shields.io/badge/unsafe-forbidden-success.svg)
[![Rust docs](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/tracerr)
[![Rust docs](https://docs.rs/tracerr/badge.svg)](https://docs.rs/tracerr)

[API Docs](https://docs.rs/tracerr) |
[Changelog](https://github.com/instrumentisto/tracerr-rs/blob/master/CHANGELOG.md)
Expand Down

0 comments on commit 10a91a3

Please sign in to comment.