-
-
Notifications
You must be signed in to change notification settings - Fork 96
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 #210 from akhildevelops/master
Publish CLI in a release through Actions, fix lint errors, add few more fake generators to CLI
- Loading branch information
Showing
9 changed files
with
206 additions
and
317 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
|
||
jobs: | ||
build_and_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
command: build | ||
args: --release --bin fake --features cli | ||
# TODO: Support generating for multiple targets. | ||
# https://stackoverflow.com/questions/73498168/github-actions-merge-artifacts-after-matrix-steps | ||
- name: Archive Binary | ||
run: | | ||
tar cvzf fake-${{ github.ref_name }}-linux-x86_64.tar.gz README.md -C target/release fake | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
fake-${{ github.ref_name }}-linux-x86_64.tar.gz |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "fake" | ||
version = "3.0.1" | ||
version = "3.1.0" | ||
authors = ["cksac <[email protected]>"] | ||
description = "An easy to use library and command line for generating fake data like name, number, address, lorem, dates, etc." | ||
keywords = ["faker", "data", "generator", "random"] | ||
|
@@ -61,7 +61,7 @@ bigdecimal = ["bigdecimal-rs", "rust_decimal"] | |
geo = ["geo-types", "num-traits"] | ||
http = ["dep:http", "url-escape"] | ||
bson_oid = ["bson"] | ||
cli = ["dep:clap"] | ||
cli = ["dep:clap","random_color","chrono","http"] | ||
|
||
[[example]] | ||
name = "basic" | ||
|
Oops, something went wrong.