From 15fb6d70e5d70f702f56520ac02591ce38f5c3b1 Mon Sep 17 00:00:00 2001 From: FedericoBruzzone Date: Sun, 26 May 2024 23:03:29 +0200 Subject: [PATCH] Release v1.0.2 Signed-off-by: FedericoBruzzone --- .github/workflows/cd.yml | 29 +++++++++++++---------------- tdlib-rs-gen/Cargo.toml | 4 ++-- tdlib-rs-parser/Cargo.toml | 2 +- tdlib-rs/Cargo.toml | 6 +++--- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9cffd0b..9bbdee3 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -14,29 +14,26 @@ jobs: build-tdlib: uses: ./.github/workflows/build-tdlib.yml - ci: + release_github: runs-on: ubuntu-latest + needs: build-tdlib + steps: + - name: Download artifacts + run: gh run download ${{ github.run_id }} -R $REPO + - name: Zip artifacts + run: find * -maxdepth 0 -type d -execdir mv '{}' tdlib \; -execdir zip -r -m -6 '{}.zip' 'tdlib' \; + - name: Create release + run: gh release create ${{ github.ref_name }} -R $REPO --generate-notes ./*.zip + + release_crates: + runs-on: ubuntu-latest + needs: release_github steps: - name: Checkout uses: actions/checkout@v4 - - name: Print pwd - run: pwd - - name: Print ls - run: ls - name: Publish to crates.io run: | cargo login ${{ secrets.CRATES_IO_TOKEN }} cargo publish --package tdlib-rs-parser cargo publish --package tdlib-rs-gen cargo publish --no-verify --package tdlib-rs - - release: - runs-on: ubuntu-late st - needs: build-tdlib - steps: - - name: Download artifacts - run: gh run download ${{ github.run_id }} -R $REPO - - name: Zip artifacts - run: find * -maxdepth 0 -type d -execdir mv '{}' tdlib \; -execdir zip -r -m -6 '{}.zip' 'tdlib' \; - - name: Create release - run: gh release create ${{ github.ref_name }} -R $REPO --generate-notes ./*.zip diff --git a/tdlib-rs-gen/Cargo.toml b/tdlib-rs-gen/Cargo.toml index a766771..cd72115 100644 --- a/tdlib-rs-gen/Cargo.toml +++ b/tdlib-rs-gen/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tdlib-rs-gen" -version = "1.0.1" +version = "1.0.2" authors = [ "Federico Bruzzone ", "Andrea Longoni", @@ -20,4 +20,4 @@ keywords = [ description = "Rust code generator from TDLib's API definitions." [dependencies] -tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.1" } +tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.2" } diff --git a/tdlib-rs-parser/Cargo.toml b/tdlib-rs-parser/Cargo.toml index 225da1d..a97f809 100644 --- a/tdlib-rs-parser/Cargo.toml +++ b/tdlib-rs-parser/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tdlib-rs-parser" -version = "1.0.1" +version = "1.0.2" authors = [ "Federico Bruzzone ", "Andrea Longoni", diff --git a/tdlib-rs/Cargo.toml b/tdlib-rs/Cargo.toml index 8956da4..d01db6d 100644 --- a/tdlib-rs/Cargo.toml +++ b/tdlib-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tdlib-rs" -version = "1.0.1" +version = "1.0.2" authors = [ "Federico Bruzzone ", "Andrea Longoni", @@ -41,8 +41,8 @@ serde_json = "1.0" serde_with = "3.2" [build-dependencies] -tdlib-rs-gen = { path = "../tdlib-rs-gen", version = "1.0.1" } -tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.1" } +tdlib-rs-gen = { path = "../tdlib-rs-gen", version = "1.0.2" } +tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.2" } system-deps = { version = "6", optional = true } reqwest = { version = "0.12.4", features = ["blocking"], optional = true } zip = { version = "2.0.0", optional = true }