Skip to content

Commit c3f251b

Browse files
Merge pull request #8 from NREL/rjf/crates
publish to crates.io
2 parents e830230 + bd4e556 commit c3f251b

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish - crates.io
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
name: Publish to Crates.io
10+
environment: crates
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Install Rust toolchain
17+
uses: dtolnay/rust-toolchain@master
18+
with:
19+
toolchain: stable
20+
21+
- name: Run tests
22+
run: cargo test --all --manifest-path=rust/Cargo.toml
23+
24+
- name: Publish bambam-overturemaps
25+
run: cargo publish -p bambam-overturemaps --manifest-path=rust/Cargo.toml --token "${{ secrets.CRATES_IO_TOKEN }}"
26+
27+
- name: Publish bambam-osm
28+
run: cargo publish -p bambam-osm --manifest-path=rust/Cargo.toml --token "${{ secrets.CRATES_IO_TOKEN }}"
29+
30+
- name: Publish bambam-gtfs
31+
run: cargo publish -p bambam-gtfs --manifest-path=rust/Cargo.toml --token "${{ secrets.CRATES_IO_TOKEN }}"
32+
33+
- name: Publish bambam
34+
run: cargo publish -p bambam --manifest-path=rust/Cargo.toml --token "${{ secrets.CRATES_IO_TOKEN }}"
35+
36+
# - name: Publish bambam-py
37+
# run: cargo publish -p bambam-py --manifest-path=rust/Cargo.toml --token "${{ secrets.CRATES_IO_TOKEN }}"

0 commit comments

Comments
 (0)