From 272a1c6eb27b8bb5dbf307c890b7358ebd42d3e3 Mon Sep 17 00:00:00 2001 From: Putta Khunchalee Date: Wed, 18 Sep 2024 12:10:38 +0700 Subject: [PATCH] Adds Actions to publish crate --- .github/workflows/cd.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/cd.yml diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml new file mode 100644 index 0000000..88613d3 --- /dev/null +++ b/.github/workflows/cd.yml @@ -0,0 +1,16 @@ +name: CD +on: + push: + tags: + - '*' +jobs: + publish: + name: Publish + runs-on: ubuntu-latest + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: Publish + run: cargo publish