Skip to content

Commit

Permalink
Release v1.0.0
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 940276e commit 4550d71
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 9 deletions.
23 changes: 17 additions & 6 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,23 @@ env:
jobs:
build-tdlib:
uses: ./.github/workflows/build-tdlib.yml

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 --package tdlib-rs
release:
runs-on: ubuntu-latest
needs: build-tdlib
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
```
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 4550d71

Please sign in to comment.