From 8218393b82cbe4bc89b42f2157e19a7c3be78096 Mon Sep 17 00:00:00 2001 From: cocuh Date: Wed, 25 Sep 2024 02:50:05 +0900 Subject: [PATCH] Introduce github workflow to publish cargo crate (#141) --- .github/workflows/publish.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..f9be018 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,22 @@ +name: Publish + +on: + release: + types: [published] + +permissions: read-all + +env: + CARGO_TERM_COLOR: always + +jobs: + publish: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Publish release of assertor + env: + CARGO_REGISTRY_TOKEN: ${{secrets.CARGO_REGISTRY_TOKEN}} + run: cargo publish -p assertor