From 349ead6fef48343c883c060462c563067f6a5bd6 Mon Sep 17 00:00:00 2001 From: DCjanus Date: Sun, 11 Jun 2023 16:47:00 +0800 Subject: [PATCH] add publish action --- .github/workflows/release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..889b1e0 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +on: + push: + tags: + - v* +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file