From 98e6b0077e0e02fe7fc028e4c9b719d512b730c1 Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Tue, 9 Mar 2021 20:36:33 +0530 Subject: [PATCH] Update release workflow --- .github/workflows/publish.yaml | 44 +++++++++++++++++++++++ .github/workflows/{rust.yml => rust.yaml} | 2 +- README.md | 10 ++++++ 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish.yaml rename .github/workflows/{rust.yml => rust.yaml} (93%) create mode 100644 README.md diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..483b232 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -0,0 +1,44 @@ +name: Rust Release Build + +on: + push: + tags: + - 'v*.*.*' + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + default: true + override: true + + - name: Build + run: cargo build --release + + - name: Run tests + run: cargo test --verbose + + - name: Strip + run: strip target/release/ntext-cli + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + LICENSE + target/release/ntext-cli + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yaml similarity index 93% rename from .github/workflows/rust.yml rename to .github/workflows/rust.yaml index 3c13d1b..0f95efc 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yaml @@ -1,4 +1,4 @@ -name: Rust +name: Rust Build Test on: push: diff --git a/README.md b/README.md new file mode 100644 index 0000000..cf0c422 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +## ntext-cli + +Uses ntext-rs library to print numbers as words. +Type + +```bash +ntext-cli --help +``` + +for more information.