From 4884f0c9c58932d8ab82361a05156c373ad735e5 Mon Sep 17 00:00:00 2001 From: Ringo Hoffmann Date: Tue, 5 Mar 2024 10:58:31 +0100 Subject: [PATCH] add crates.io publish job --- .github/workflows/releases.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index bacafb2..bb876e7 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -6,6 +6,22 @@ on: tags: ["v[0-9]+.[0-9]+.[0-9]+*"] jobs: + cratesio-publish: + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v2 + + - name: Setup Rust toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + override: true + toolchain: nightly + + - name: Publish to crates.io + run: "cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}" + build-release: runs-on: ${{ matrix.os }} strategy: