Skip to content

Commit

Permalink
Release v1.0.1
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 ff61dd0
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 16 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [ main ]
release:
types: [ created, published ]
types: [ published ]

env:
GH_TOKEN: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [ main ]
release:
types: [ created, published ]
types: [ published ]

env:
GH_TOKEN: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
pull_request:
branches: [ main ]
release:
types: [ created, published ]
types: [ published ]

env:
GH_TOKEN: ${{ github.token }}
Expand Down
10 changes: 10 additions & 0 deletions RELEASE.md
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
```
4 changes: 2 additions & 2 deletions tdlib-rs-gen/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tdlib-rs-gen"
version = "1.0.0"
version = "1.0.1"
authors = [
"Federico Bruzzone <[email protected]>",
"Andrea Longoni",
Expand All @@ -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" }
2 changes: 1 addition & 1 deletion tdlib-rs-parser/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tdlib-rs-parser"
version = "1.0.0"
version = "1.0.1"
authors = [
"Federico Bruzzone <[email protected]>",
"Andrea Longoni",
Expand Down
7 changes: 4 additions & 3 deletions tdlib-rs/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "tdlib-rs"
version = "1.0.0"
version = "1.0.1"
authors = [
"Federico Bruzzone <[email protected]>",
"Andrea Longoni",
Expand All @@ -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 Expand Up @@ -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 }
Expand Down

0 comments on commit ff61dd0

Please sign in to comment.