From 41a7d5fa821554b418f97affb8f46ad877190ca4 Mon Sep 17 00:00:00 2001 From: Lucas Colombo Date: Thu, 4 Jan 2024 20:10:45 -0300 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=94=84=20publish=20to=20crates.io?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/composites/setup/action.yml | 35 ------------------- .github/workflows/publish.yml | 31 +++++++++------- Cargo.toml | 14 +++++--- 3 files changed, 27 insertions(+), 53 deletions(-) delete mode 100644 .github/workflows/composites/setup/action.yml diff --git a/.github/workflows/composites/setup/action.yml b/.github/workflows/composites/setup/action.yml deleted file mode 100644 index 6f8f821..0000000 --- a/.github/workflows/composites/setup/action.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: "๐Ÿž๏ธ ยป setup environment" -description: "setup all necessary tools for the workflow to run" -inputs: - python-version: - description: "Version of python to install" - required: true - -defaults: - run: - shell: 'bash' - -runs: - using: "composite" - - steps: - - name: ๐Ÿž๏ธ ยป setup environment - shell: bash - run: echo "๐Ÿž๏ธ ยป setup environment with python ${{inputs.python-version}}" - - - name: ๐ŸงŠ ยป install go-task - uses: arduino/setup-task@v1 - with: - version: 3.x - - - name: ๐Ÿฆ€ ยป install rust - uses: dtolnay/rust-toolchain@stable - - - name: ๐Ÿ“œ ยป log sysinfo - shell: bash - run: | - uname -a - task --version - cargo --version - rustc --version - rustup --version \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7537f32..cda1483 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -32,15 +32,6 @@ jobs: bin: kurv.exe archive: kurv-windows-x86_64.zip steps: - - name: ๐Ÿ“œ ยป log run info - run: | - echo "os: ${{ matrix.platform.os }}" - echo "os_name: ${{ matrix.platform.os_name }}" - echo "target: ${{ matrix.platform.target }}" - echo "bin: ${{ matrix.platform.bin }}" - echo "archive: ${{ matrix.platform.archive }}" - echo "run_id: ${{ github.run_id }}" - - name: ๐Ÿ“ ยป checkout repository uses: actions/checkout@v3 with: @@ -81,10 +72,6 @@ jobs: needs: build runs-on: ubuntu-latest steps: - - name: ๐Ÿ“œ ยป log run info - run: | - echo "run_id: ${{ github.run_id }}" - - name: ๐Ÿ“ฅ ยป download artifacts uses: actions/download-artifact@v4 with: @@ -99,3 +86,21 @@ jobs: with: files: | kurv-* + + publish-crates-io: + name: ๐Ÿš€ ยป publish crates.io + needs: build + runs-on: ubuntu-latest + steps: + - name: ๐Ÿ“ ยป checkout repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: ๐Ÿฆ€ ยป install rust + uses: dtolnay/rust-toolchain@stable + + - name: ๐Ÿš€ ยป publish + uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CRATES_TOKEN }} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 3cf48c9..db61f40 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,10 +2,15 @@ name = "kurv" version = "0.0.1" edition = "2021" -description = "A process manager to deamonize commands and programs. Made with ๐Ÿง‰ from Argentina" -authors = ["Lucas Colombo"] - -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +description = "A process manager to daemonize commands and programs. Inspired by pm2, but lightweight and not as featureful." +authors = ["Lucas Colombo"] +license = "MIT" +license-file = "LICENSE" +repository = "https://github.com/lucas-labs/kurv" +categories = ["command-line-utilities"] +readme = "README.md" +homepage = "https://kurv.lucode.ar" +keywords = ["cli", "process", "manager", "daemon", "daemonize"] [profile.release] strip = true @@ -17,7 +22,6 @@ rpath = false overflow-checks = false debug = 0 debug-assertions = false -# incremental = true # remove this one [dependencies] anyhow = "1.0.75"