From 443ee533302cd9b7e95769cc49812ac366b818da Mon Sep 17 00:00:00 2001 From: Ariel Miculas-Trif Date: Thu, 19 Sep 2024 01:59:42 +0300 Subject: [PATCH] Fix the github publish action `cargo publish` needs a package name as a parameter. We first publish `puzzlefs-lib`, which is a dependency for `puzzlefs`. Signed-off-by: Ariel Miculas-Trif --- .github/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6be31fa..23fab59 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,6 +21,8 @@ jobs: - run: make lint check - name: publish if: startsWith(github.ref, 'refs/tags/') && github.event_name == 'push' - run: cargo publish --token ${CRATES_TOKEN} + run: | + cargo publish -p puzzlefs-lib --token ${CRATES_TOKEN} + cargo publish -p puzzlefs --token ${CRATES_TOKEN} env: CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}