-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #593 from woshilapin/publish
[tech] Use CI for auto-release of the crate
- Loading branch information
Showing
2 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
|
@@ -87,3 +87,6 @@ required-features = ["proj"] | |
[dev-dependencies] | ||
approx = "0.3" | ||
rust_decimal_macros = "1.0" | ||
|
||
[package.metadata.docs.rs] | ||
all-features = true |