summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/CI.yml4
-rw-r--r--.github/workflows/Publish.yml17
2 files changed, 17 insertions, 4 deletions
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