Skip to content

Commit

Permalink
Release v1.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: FedericoBruzzone <[email protected]>
  • Loading branch information
FedericoBruzzone committed May 26, 2024
1 parent 940276e commit 396ec27
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ 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: 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
10 changes: 10 additions & 0 deletions RELEASE.ml
Original file line number Diff line number Diff line change
@@ -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
```
1 change: 1 addition & 0 deletions tdlib-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down

0 comments on commit 396ec27

Please sign in to comment.