From ff61dd0480354a2f7d9dc5f24edbedf9c7206263 Mon Sep 17 00:00:00 2001 From: FedericoBruzzone Date: Sun, 26 May 2024 15:39:45 +0200 Subject: [PATCH] Release v1.0.1 Signed-off-by: FedericoBruzzone --- .github/workflows/cd.yml | 25 ++++++++++++++++++------- .github/workflows/ci-linux.yml | 2 +- .github/workflows/ci-macos.yml | 2 +- .github/workflows/ci-windows.yml | 2 +- RELEASE.md | 10 ++++++++++ tdlib-rs-gen/Cargo.toml | 4 ++-- tdlib-rs-parser/Cargo.toml | 2 +- tdlib-rs/Cargo.toml | 7 ++++--- 8 files changed, 38 insertions(+), 16 deletions(-) create mode 100644 RELEASE.md diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index cbfb4fb..9cffd0b 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -13,8 +13,25 @@ env: jobs: build-tdlib: uses: ./.github/workflows/build-tdlib.yml - release: + + ci: runs-on: ubuntu-latest + 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 @@ -23,9 +40,3 @@ jobs: 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 - - name: Publish to crates.io - run: | - cargo login ${{ secrets.CRATES_IO_TOKEN }} - cargo publish --package tdlib-rs-gen --manifest-path tdlib-rs-gen/Cargo.toml - cargo publish --package tdlib-rs-parser --manifest-path tdlib-rs-parser/Cargo.toml - cargo publish --package tdlib-rs --manifest-path tdlib-rs/Cargo.toml diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index de9edc7..791bdda 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ main ] release: - types: [ created, published ] + types: [ published ] env: GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index f8bf5dd..fe8ef78 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ main ] release: - types: [ created, published ] + types: [ published ] env: GH_TOKEN: ${{ github.token }} diff --git a/.github/workflows/ci-windows.yml b/.github/workflows/ci-windows.yml index 7cc9ce1..e818edb 100644 --- a/.github/workflows/ci-windows.yml +++ b/.github/workflows/ci-windows.yml @@ -6,7 +6,7 @@ on: pull_request: branches: [ main ] release: - types: [ created, published ] + types: [ published ] env: GH_TOKEN: ${{ github.token }} diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000..f91f195 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,10 @@ +```bash +git add --all +git commit -sm "Release v1.0.0" +git push origin main + +git tag -l | xargs git tag -d +git fetch --tags +git tag v1.0.0 +git push origin v1.0.0 +``` diff --git a/tdlib-rs-gen/Cargo.toml b/tdlib-rs-gen/Cargo.toml index 1e51821..a766771 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.0" +version = "1.0.1" 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.0" } +tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.1" } diff --git a/tdlib-rs-parser/Cargo.toml b/tdlib-rs-parser/Cargo.toml index 0dd891d..225da1d 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.0" +version = "1.0.1" authors = [ "Federico Bruzzone ", "Andrea Longoni", diff --git a/tdlib-rs/Cargo.toml b/tdlib-rs/Cargo.toml index 3a76d39..8956da4 100644 --- a/tdlib-rs/Cargo.toml +++ b/tdlib-rs/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tdlib-rs" -version = "1.0.0" +version = "1.0.1" authors = [ "Federico Bruzzone ", "Andrea Longoni", @@ -12,6 +12,7 @@ repository = "https://github.com/FedericoBruzzone/tdlib-rs" documentation = "https://docs.rs/tdlib-rs" keywords = ["telegram", "tdlib", "tdjson", "tdlib-rs", "telegram-api"] description = "Rust wrapper around the Telegram Database Library." +readme = "README.md" [package.metadata.docs.rs] features = ["docs", "bots-only-api"] @@ -40,8 +41,8 @@ serde_json = "1.0" serde_with = "3.2" [build-dependencies] -tdlib-rs-gen = { path = "../tdlib-rs-gen", version = "1.0.0" } -tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.0" } +tdlib-rs-gen = { path = "../tdlib-rs-gen", version = "1.0.1" } +tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.1" } system-deps = { version = "6", optional = true } reqwest = { version = "0.12.4", features = ["blocking"], optional = true } zip = { version = "2.0.0", optional = true }