diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 941e426..6f0adaa 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -101,3 +101,14 @@ jobs: files: | katharsis-*-${{ matrix.job.target }}.* katharsis*.deb + + publish-to-cargo: + name: Publishing to Cargo + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Installing Rust toolchain + uses: dtolnay/rust-toolchain@stable + - name: Cargo publish + run: cargo publish --token ${{ secrets.CARGO_API_KEY }} diff --git a/Cargo.toml b/Cargo.toml index 66428b6..e18b7fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,21 @@ [package] name = "katharsis" +authors = ["Shigure Kurosaki "] version = "1.0.0-canary.20" edition = "2021" +license = "MIT" +categories = ["command-line-utilities"] +homepage = "https://github.com/kurosakishigure/katharsis" +repository = "https://github.com/kurosakishigure/katharsis" description = "CLI tool for generating RSS feeds." +include = ["/src", "README.md", "LICENSE", "Cargo.toml", "Cargo.lock"] [lints.clippy] pedantic = "warn" +[[bin]] +name = "katharsis" + [dependencies] anyhow = "1.0.95" chrono = "0.4.39" diff --git a/docs/USE.md b/docs/USE.md index efceaec..7702703 100644 --- a/docs/USE.md +++ b/docs/USE.md @@ -14,6 +14,12 @@ If you're using a Debian-based system, you can directly install the .deb file fr sudo apt install katharsis.deb ``` +If you are using Cargo, please run: + +```bash +cargo install katharsis +``` + Otherwise, you'll need to follow the step-by-step instructions below to install Katharsis. Run the following command to extract the downloaded file: