From 21504462c8a76b63807a9ee803420eb7dee2695d Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 5 Jan 2025 08:52:53 +0000 Subject: [PATCH] build: pubilsh to crates.io Now that there is a viable CLI way to run the program, let's make it available to be installed easily. --- .forgejo/workflows/push-main.yml | 35 ++++++++++++++++++++++++++++++++ Cargo.toml | 5 ++++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .forgejo/workflows/push-main.yml diff --git a/.forgejo/workflows/push-main.yml b/.forgejo/workflows/push-main.yml new file mode 100644 index 0000000..3c151ab --- /dev/null +++ b/.forgejo/workflows/push-main.yml @@ -0,0 +1,35 @@ +name: Release Please + +permissions: + pull-requests: write + contents: write + +on: + push: + branches: + - main + +env: + CARGO_TERM_COLOR: always + +jobs: + release-plz: + name: Release-plz + runs-on: docker + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run release-plz release-pr + uses: https://git.kemitix.net/kemitix/rust@v2.5.0 + with: + args: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }} + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: Run release-plz release + uses: https://git.kemitix.net/kemitix/rust@v2.5.0 + with: + args: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }} + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 0f1192b..d4e69fa 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,10 @@ name = "forgejo-todo-checker" version = "1.2.0" edition = "2021" -publish = false # NOTE: Not a CLI tool or a library, so don't release to crates.io +authors = ["Paul Campbell "] +description = "Checks your source files for TODO and FIXME comments, where they don't have an open issue number." +license = "MIT" +repository = "https://git.kemitix.net/kemitix/trello-to-deck" [dependencies] bon = "3.0"