diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 7708809..f4da66c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -2,7 +2,7 @@ name: CD on: push: - tags: + tags: # - "v[0-9]+.[0-9]+.[0-9]+" - "*" @@ -23,4 +23,9 @@ 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 - # cargo publish \ No newline at end of file + - 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/README.md b/README.md index 4c59c5c..892f1a2 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,10 @@ A Rust wrapper around the Telegram Database library. It includes a generator to This is an improved version of the [tdlib-rs](https://github.com/paper-plane-developers/tdlib-rs) library, with the following additional features: -1. It is cross-platform, it should work on Windows, Linux and MacOS. +1. It is cross-platform, it works on Windows, Linux and MacOS. 2. Not required `pkg-config` to build the library and associated exported variables. 3. Not required `tdlib` to be compiled and installed on the system. +4. It is possible to download the `tdlib` library from the GitHub releases. ## Information diff --git a/tdlib-rs/Cargo.toml b/tdlib-rs/Cargo.toml index 9e9f75d..3a76d39 100644 --- a/tdlib-rs/Cargo.toml +++ b/tdlib-rs/Cargo.toml @@ -12,7 +12,6 @@ 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"] diff --git a/tdlib-rs/README.md b/tdlib-rs/README.md new file mode 120000 index 0000000..32d46ee --- /dev/null +++ b/tdlib-rs/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file