From a14090909f402b3163ce4a8107bac552d7d3fc62 Mon Sep 17 00:00:00 2001 From: Sharun Date: Sat, 28 Dec 2024 20:20:03 -0600 Subject: [PATCH] Update Publish Script --- .github/workflows/publish.yml | 40 +++++++++++++++++------------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d9b88cf..baaea8d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,3 +1,5 @@ +name: Publish Crate + on: workflow_dispatch: push: @@ -5,23 +7,21 @@ on: - master jobs: - publish-package: - runs-on: ubuntu-latest - name: Publish Crate - steps: - - uses: actions/checkout@v4 - - uses: Swatinem/rust-cache@v2 - - name: Cargo Bump & Publish - env: - CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} - run: | - git config --global user.email "sharunksplus@gmail.com" - git config --global user.name "Sharun" - sudo apt install libdbus-1-dev pkg-config - cargo install cargo-bump - cargo bump - cargo update - git add . && git commit -m "bump version" - cargo publish && git push - - + publish-package: + runs-on: ubuntu-latest + name: Publish Crate + steps: + - uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 + - name: Cargo Bump & Publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + run: | + git config --global user.email "sharunksplus@gmail.com" + git config --global user.name "Sharun" + sudo apt install libdbus-1-dev pkg-config + cargo install cargo-bump + cargo bump + cargo check + git add . && git commit -m "bump version" + cargo publish && git push