From 56317840436f96194a205e85db5498a9fb87bfce Mon Sep 17 00:00:00 2001 From: Adrian Wannenmacher Date: Sun, 24 Sep 2023 07:38:07 +0200 Subject: [PATCH] initial release --- .github/workflows/rust.yml | 15 ++++++++++++++- Cargo.toml | 5 ++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index dcff070..1c2f0c6 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -38,17 +38,30 @@ on: tags: - "v*" +env: + CARGO_TERM_COLOR: always + jobs: release: runs-on: "ubuntu-latest" steps: - uses: actions/checkout@v3 + - name: Check versions + run: | + CARGO_VER=$(cargo pkgid | sed "s/^.*#/v/") + TAG_VER=${{ github.ref_name }} + if [[ "$CARGO_VER" != "$TAG_VER" ]]; then exit 1; fi - name: Build run: cargo build --release --verbose - name: Run tests run: cargo test --release --verbose - - uses: "marvinpinto/action-automatic-releases@latest" + - name: Publish to crates.io + run: cargo publish + env: + CARGO_REGISTRY_TOKEN: "${{ secrets.CRATES_IO_TOKEN }}" + - name: Publish to GitHub + uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false diff --git a/Cargo.toml b/Cargo.toml index 50eec8d..1ef7498 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,12 +5,11 @@ edition = "2021" authors = ["Adrian Wannenmacher "] license = "EUPL-1.2" +repository = "https://github.com/TeFiLeDo/tree-owners" description = "Find all owners (user and group) inside a directory tree." categories = ["command-line-utilities", "filesystem"] -keywords = ["cli", "linux", "file", ] - -publish = false +keywords = ["cli", "linux", "file"] # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html