Skip to content

Commit 0b3cea6

Browse files
authored
Release (#15)
* Add dependabot workflow * Update gnss v2.2.3 * Introduce auto release --------- Signed-off-by: Guillaume W. Bres <[email protected]>
1 parent 107fb19 commit 0b3cea6

File tree

4 files changed

+35
-4
lines changed

4 files changed

+35
-4
lines changed

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: cargo
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "12:00"
8+
open-pull-requests-limit: 10

.github/workflows/rust.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Rust
33
on:
44
push:
55
branches: [ main ]
6+
tags:
7+
- "*"
68
pull_request:
79
branches: [ main ]
810

@@ -54,15 +56,36 @@ jobs:
5456
args: --verbose --all-features
5557

5658
build-ws:
59+
name: Build Windows
5760
runs-on: windows-latest
5861
steps:
5962
- uses: actions/checkout@v2
6063
- name: Build
6164
run: cargo build --all-features --release --verbose
6265

6366
build-mac:
67+
name: Build Mac-OS
6468
runs-on: macos-latest
6569
steps:
6670
- uses: actions/checkout@v2
6771
- name: Build
6872
run: cargo build --all-features --release --verbose
73+
74+
publish:
75+
name: Publish Library
76+
runs-on: ubuntu-latest
77+
needs: [lint, tests, build-ws, build-mac]
78+
if: github.ref_type == 'tag'
79+
steps:
80+
- name: Checkout
81+
uses: actions/checkout@v4
82+
- name: Install stable toolchain
83+
uses: dtolnay/rust-toolchain@master
84+
with:
85+
toolchain: stable
86+
- name: Publish
87+
env:
88+
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
89+
run: |
90+
cargo login $TOKEN
91+
cargo publish -p cggtts

cggtts-cli/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cggtts-cli"
3-
version = "1.0.6"
3+
version = "1.0.7"
44
license = "MIT OR Apache-2.0"
55
authors = ["Guillaume W. Bres <[email protected]>"]
66
description = "Command line tool parse and analyze CGGTTS data"
@@ -17,6 +17,6 @@ itertools = "0.11.0"
1717
env_logger = "0.10"
1818
clap = { version = "4.4.6", features = ["derive", "color"] }
1919
serde = { version = "1.0", default-features = false, features = ["derive"] }
20-
cggtts = { path = "../cggtts", version = "=4.1.5" }
20+
cggtts = { path = "../cggtts", version = "=4.1.6" }
2121
plotly = "0.8.4"
2222
# plotly = { git = "https://github.com/gwbres/plotly", branch = "density-mapbox" }

cggtts/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cggtts"
3-
version = "4.1.5"
3+
version = "4.1.6"
44
license = "MIT OR Apache-2.0"
55
authors = ["Guillaume W. Bres <[email protected]>"]
66
description = "Package to analyze and create CGGTTS data"
@@ -22,7 +22,7 @@ scan_fmt = "0.1"
2222
strum = "0.23.0"
2323
itertools = "0.11.0"
2424
strum_macros = "0.23.0"
25-
gnss-rs = { version = "2.2.1", features = ["serde"] }
25+
gnss-rs = { version = "2.2.3", features = ["serde"] }
2626
serde = { version = "1.0", optional = true, features = ["derive"] }
2727
hifitime = { version = "4.0.0-alpha", features = ["serde", "std"] }
2828

0 commit comments

Comments
 (0)