Skip to content

Commit

Permalink
Merge pull request #593 from woshilapin/publish
Browse files Browse the repository at this point in the history
[tech] Use CI for auto-release of the crate
  • Loading branch information
datanel authored Mar 27, 2020
2 parents 08fbc83 + 73fbf8e commit 6bb75f1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish on crates.io
on:
release:
types: [created]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Cargo login
uses: actions-rs/cargo@v1
with:
command: login
args: -- ${{ secrets.CARGO_TOKEN }}
- name: Publish transit_model
uses: actions-rs/cargo@v1
with:
command: publish
args: --all-features
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
authors = ["Kisio Digital <[email protected]>", "Guillaume Pinot <[email protected]>"]
name = "transit_model"
version = "0.15.3"
version = "0.16.0"
license = "AGPL-3.0-only"
description = "Transit data management"
repository = "https://github.com/CanalTP/transit_model"
Expand Down Expand Up @@ -87,3 +87,6 @@ required-features = ["proj"]
[dev-dependencies]
approx = "0.3"
rust_decimal_macros = "1.0"

[package.metadata.docs.rs]
all-features = true

0 comments on commit 6bb75f1

Please sign in to comment.