From dcacfc5b11d30d59f1239f5dee3e534a1df38dc7 Mon Sep 17 00:00:00 2001 From: Derek Bailey Date: Tue, 28 May 2024 18:33:04 -0700 Subject: [PATCH] Update release.yml Use explicit paths in publish-crates. Also adds flexbuffers publishing. --- .github/workflows/release.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c837fd0188..022ff92b6b2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -132,15 +132,21 @@ jobs: publish-crates: name: Publish crates.io runs-on: ubuntu-latest - defaults: - run: - working-directory: ./rust/flatbuffers steps: - uses: actions/checkout@v3 - uses: actions-rs/toolchain@v1 with: toolchain: stable override: true + + - name: Publish Flatbuffers + - uses: katyo/publish-crates@v2 + with: + path: .rust/flatbuffers + registry-token: ${{ secrets.CARGO_TOKEN }} + + - name: Publish Flexbuffers - uses: katyo/publish-crates@v2 with: + path: .rust/flexbuffers registry-token: ${{ secrets.CARGO_TOKEN }}