Skip to content

Commit

Permalink
Release v1.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: FedericoBruzzone <federico.bruzzone.i@gmail.com>
  • Loading branch information
FedericoBruzzone committed May 26, 2024
1 parent ff61dd0 commit 15fb6d7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
29 changes: 13 additions & 16 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,29 +14,26 @@ jobs:
build-tdlib:
uses: ./.github/workflows/build-tdlib.yml

ci:
release_github:
runs-on: ubuntu-latest
needs: build-tdlib
steps:
- name: Download artifacts
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

release_crates:
runs-on: ubuntu-latest
needs: release_github
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
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
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.1"
version = "1.0.2"
authors = [
"Federico Bruzzone <federico.bruzzone.i@gmail.com>",
"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.1" }
tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.2" }
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.1"
version = "1.0.2"
authors = [
"Federico Bruzzone <federico.bruzzone.i@gmail.com>",
"Andrea Longoni",
Expand Down
6 changes: 3 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.1"
version = "1.0.2"
authors = [
"Federico Bruzzone <federico.bruzzone.i@gmail.com>",
"Andrea Longoni",
Expand Down Expand Up @@ -41,8 +41,8 @@ serde_json = "1.0"
serde_with = "3.2"

[build-dependencies]
tdlib-rs-gen = { path = "../tdlib-rs-gen", version = "1.0.1" }
tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.1" }
tdlib-rs-gen = { path = "../tdlib-rs-gen", version = "1.0.2" }
tdlib-rs-parser = { path = "../tdlib-rs-parser", version = "1.0.2" }
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 15fb6d7

Please sign in to comment.