From 2f7ecf77781f181b8de178e0ec2f4a37a958a412 Mon Sep 17 00:00:00 2001 From: seancarroll Date: Tue, 23 Mar 2021 21:48:35 -0500 Subject: make publish a manaul trigger --- .github/workflows/CI.yml | 4 ---- .github/workflows/Publish.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/Publish.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index d4ed039..4dd1560 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -20,7 +20,3 @@ jobs: run: cargo build --verbose - name: Run tests run: cargo test --verbose - - name: Publish - run: | - cargo login ${{ secrets.CARGO_API_KEY }} - cargo publish diff --git a/.github/workflows/Publish.yml b/.github/workflows/Publish.yml new file mode 100644 index 0000000..11a9355 --- /dev/null +++ b/.github/workflows/Publish.yml @@ -0,0 +1,17 @@ +name: Publish + +on: workflow_dispatch + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Publish + run: | + cargo login ${{ secrets.CARGO_API_KEY }} + cargo publish \ No newline at end of file -- cgit v1.2.3