From f63effaff2e634f5b17f20ba6d239c456b2a6128 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Fri, 24 May 2024 11:11:05 +0900 Subject: [PATCH] chore: add automatic crate publishing --- .github/workflows/cd.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 8ac7cc6..3673b4a 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -23,6 +23,12 @@ jobs: - name: Build run: cargo build --release --verbose + - name: Publish on crates.io + uses: actions-rs/cargo@v1 + with: + command: publish + args: --allow-dirty --token ${{ secrets.CARGO_TOKEN }} + - name: Generate a changelog uses: orhun/git-cliff-action@v3 with: