From f95be516389522a22a5f6fa1d8359c5040baacb0 Mon Sep 17 00:00:00 2001 From: Maksym Pavlenko Date: Thu, 24 Aug 2023 15:00:09 -0700 Subject: [PATCH] Fix publish script Signed-off-by: Maksym Pavlenko --- .github/workflows/publish.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index eddafa1c..62fa125b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,7 +46,14 @@ jobs: - name: Extract package version id: extract_version - run: echo "version=$(cargo pkgid --manifest-path $CARGO_FILE | sed 's/.*@//')" >> $GITHUB_OUTPUT + run: | + cargo generate-lockfile + echo "version=$(cargo pkgid --manifest-path $CARGO_FILE | sed 's/.*@//')" >> $GITHUB_OUTPUT + + - name: Install protobuf + run: | + sudo apt update + sudo apt install protobuf-compiler - name: Publish on crates.io run: cargo publish $DRYRUN --manifest-path $CARGO_FILE