From 9049a8c6b3c5b7d724f0490140a8d89998227a6b Mon Sep 17 00:00:00 2001 From: FedericoBruzzone Date: Sun, 26 May 2024 15:39:45 +0200 Subject: [PATCH] Release v1.0.0 Signed-off-by: FedericoBruzzone --- .github/workflows/cd.yml | 14 +++++++++----- RELEASE.md | 10 ++++++++++ tdlib-rs/Cargo.toml | 1 + 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 RELEASE.md diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index cbfb4fb..f8a463c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -21,11 +21,15 @@ jobs: 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 + - 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-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 + cargo publish --package tdlib-rs-parser --manifest-path ./tdlib-rs-parser/Cargo.toml + cargo publish --package tdlib-rs-gen --manifest-path ./tdlib-rs-gen/Cargo.toml + cargo publish --package tdlib-rs --manifest-path ./tdlib-rs/Cargo.toml + - name: Create release + run: gh release create ${{ github.ref_name }} -R $REPO --generate-notes ./*.zip 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/Cargo.toml b/tdlib-rs/Cargo.toml index 3a76d39..e2be1ba 100644 --- a/tdlib-rs/Cargo.toml +++ b/tdlib-rs/Cargo.toml @@ -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"]