Skip to content

Commit 8e39ceb

Browse files
committed
fix: clean target directory in ci release workflow
Signed-off-by: Joseph Livesey <[email protected]>
1 parent a3384a2 commit 8e39ceb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release_please.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,19 @@ jobs:
4545
- uses: actions/checkout@v3
4646
- name: Install system dependencies
4747
run: apt-get update && apt-get install -y protobuf-compiler libsasl2-dev
48+
- name: Clean target directory
49+
run: rm -rf target
4850
- uses: actions/cache@v3
4951
with:
5052
path: |
5153
~/.cargo/registry
5254
~/.cargo/git
53-
target
5455
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
5556
- name: Install cargo-workspaces
5657
run: cargo install cargo-workspaces
5758
- name: Publish workspace crates
5859
# `--no-remove-dev-deps` is a workaround for https://github.com/pksunkara/cargo-workspaces/issues/103
59-
run: cargo workspaces publish --from-git --no-remove-dev-deps -y
60+
run: |
61+
cargo workspaces publish --from-git --no-remove-dev-deps -y
6062
env:
6163
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)