-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from dzcode-io/chore/draf-release-via-github-…
…action chore: draft release via GitHub action
- Loading branch information
Showing
12 changed files
with
2,032 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: "CD" | ||
run-name: "Publish: ${{ github.ref_name }}" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "rust-*" | ||
|
||
jobs: | ||
publish: | ||
name: cargo publish | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
CWD: "rust" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions-rust-lang/setup-rust-toolchain@v1 | ||
- run: cargo publish | ||
working-directory: ${{ env.CWD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
target | ||
src/static/_auto_generated | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
# kuliya for Rust | ||
# kuliya | ||
|
||
Algeria's college hierarchy dataset as Cargo package | ||
Algeria's college hierarchy dataset as a crate with useful APIs. | ||
|
||
# Get started | ||
Example | ||
|
||
WIP | ||
```rust | ||
use kuliya::r#static::api::get_node_by_path; | ||
|
||
# Contribute | ||
let faculty_of_science_and_technology = get_node_by_path("umkb/fst"); | ||
|
||
Please install Rust compiler using https://rustup.rs/ | ||
assert_eq!(faculty_of_science_and_technology.is_some(), true); | ||
|
||
Feel free to ask for help in [#kuliya](https://dzcode.slack.com/archives/C01C0155CKC) group chat | ||
let faculty_of_science_and_technology = faculty_of_science_and_technology.unwrap(); | ||
|
||
assert_eq!(faculty_of_science_and_technology.name.ar, "كلية العلوم والتكنلوجيا"); | ||
|
||
// when the path is not found, the function returns None | ||
let non_existing_node = get_node_by_path("umkb/fst/unknown"); | ||
|
||
assert_eq!(non_existing_node.is_none(), true); | ||
``` | ||
|
||
License: MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.