diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 000000000..4df3874ee --- /dev/null +++ b/.github/workflows/publish.yml @@ -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 diff --git a/Cargo.toml b/Cargo.toml index 9dffa1942..21e81ddd5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] authors = ["Kisio Digital ", "Guillaume Pinot "] 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