diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 56d932b..4ee5297 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -5,6 +5,8 @@ on: branches: [ master ] pull_request: branches: [ master ] + release: + types: [ published ] env: CARGO_TERM_COLOR: always @@ -15,6 +17,11 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build - run: cargo build --verbose + run: cargo build - name: Run tests - run: cargo test --verbose + run: cargo test + - name: Publish + if: success() && github.event_name == 'release' + env: + CRATE_IO_ACCESS_TOKEN: ${{ secrets.CRATE_IO_ACCESS_TOKEN }} + run: cargo publish --token $CRATE_IO_ACCESS_TOKEN \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 80a31bf..0c4d415 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,15 +1,15 @@ [package] -name = "task-scheduler" +name = "runtasktic" version = "0.1.0" authors = ["Jones Magloire @Joxit"] -description = "Command line task scheduler." +description = "Command-line task management tool for execution of regular long sequential or parallel tasks." edition = "2018" license = "MIT" -repository = "https://github.com/Joxit/task-scheduler" -homepage = "https://github.com/Joxit/task-scheduler" -documentation = "https://docs.rs/task-scheduler/" +repository = "https://github.com/Joxit/runtasktic" +homepage = "https://github.com/Joxit/runtasktic" +documentation = "https://docs.rs/runtasktic/" readme = "README.md" -keywords = ["cli"] +keywords = ["cli", "shell", "command", "task"] categories = ["command-line-utilities"] [dependencies] diff --git a/README.md b/README.md index 8091e2f..a1820b1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,22 @@ -# task-scheduler -Task scheduler written in rust for long and tedious operations +# runtasktic + +[![Rust](https://github.com/Joxit/runtasktic/workflows/Rust/badge.svg)](https://github.com/Joxit/runtasktic/actions?query=workflow%3ARust) +[![Crates.io version shield](https://img.shields.io/crates/v/runtasktic.svg)](https://crates.io/crates/runtasktic) +[![Crates.io license shield](https://img.shields.io/crates/l/runtasktic.svg)](https://crates.io/crates/runtasktic) + +Runtasktic is a *fantastic* command-line task management tool for execution of regular long sequential or parallel tasks. + +There are often tasks that we repeat several times in predefined orders. Some of these tasks can take time and we would like to be notified when it ends. This is why this project exists. + +Describe your tasks in a YAML file, execute all of them with runtasktic in foreground or background. Configure the notification system, and be notified at the end of each task or when they are all finished. + +## When should I need runtasktic ? + +- when you have a redundant long running task list +- when you need a notification after a long task completion + +## Configuration examples + +[Simple sample](https://github.com/Joxit/task-scheduler/blob/master/examples/resources/sample.yml) +[Play with concurrency](https://github.com/Joxit/task-scheduler/blob/master/examples/resources/concurrency.yml) +[Play with notification](https://github.com/Joxit/task-scheduler/blob/master/examples/resources/notification.yml) \ No newline at end of file