chore: don't cache target on publish
Use a separate cache for the publish workflow, which does not cache the target directory since it immediately deletes it.
@@ -63,8 +63,7 @@ jobs:
path: |
~/.cargo/registry
~/.cargo/git
- target
- key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.rust }}-1
+ key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}-${{ matrix.rust }}-publish-1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
