diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 177e7ee22a..f27431787e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,6 +16,18 @@ jobs: override: true - name: Build run: cargo build - - uses: katyo/publish-crates@v1 + - name: Extract version from tag + id: get_version + run: echo "::set-output name=version::${GITHUB_REF/refs\/tags\//}" + - name: Login to crates.io + uses: actions-rs/cargo@v1 with: - registry-token: ${{ secrets.CARGO }} + command: login + args: ${{ secrets.CARGO }} + - name: Set and publish workspace crates + run: | + cargo install cargo-workspaces + cargo workspaces version custom ${{ steps.get_version.outputs.version }} \ + --exact --yes --no-individual-tags \ + -m "Commit new release ${{ steps.get_version.outputs.version }}" + cargo workspaces publish --yes --no-verify diff --git a/mavlink-bindgen/Cargo.toml b/mavlink-bindgen/Cargo.toml index e5f3ee534b..1d8cf1ffd6 100644 --- a/mavlink-bindgen/Cargo.toml +++ b/mavlink-bindgen/Cargo.toml @@ -1,7 +1,9 @@ [package] name = "mavlink-bindgen" -version = "0.1.0" +version = "0.13.1" edition = "2021" +license = "MIT/Apache-2.0" +description = "Library used by rust-mavlink." # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/mavlink-core/Cargo.toml b/mavlink-core/Cargo.toml index 82b2410b00..e4df6bbab6 100644 --- a/mavlink-core/Cargo.toml +++ b/mavlink-core/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mavlink-core" -version = "0.12.2" +version = "0.13.1" authors = [ "Todd Stellanova", "Michal Podhradsky", @@ -10,7 +10,7 @@ authors = [ "Ibiyemi Abiodun", ] description = "Implements the MAVLink data interchange format for UAVs." -readme = "README.md" +readme = "../README.md" license = "MIT/Apache-2.0" repository = "https://github.com/mavlink/rust-mavlink" edition = "2018" diff --git a/mavlink/Cargo.toml b/mavlink/Cargo.toml index c21c797b0d..280393172f 100644 --- a/mavlink/Cargo.toml +++ b/mavlink/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "mavlink" -version = "0.12.2" +version = "0.13.1" authors = [ "Todd Stellanova", "Michal Podhradsky",