Skip to content

Commit e923d8f

Browse files
committed
change option order
1 parent a1725df commit e923d8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release+build+publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,11 @@ jobs:
119119
path: |
120120
~/.cargo/registry
121121
target/
122-
key: nextver-${{ matrix.triple }}-${{ hashFiles('**/Cargo.lock') }}
122+
key: nextver-${{ matrix.triple }}-${{needs.tag.outputs.name}}-${{ hashFiles('**/Cargo.lock') }}
123123
restore-keys: |
124+
nextver-${{ matrix.triple }}-${{needs.tag.outputs.name}}-
124125
nextver-${{ matrix.triple }}-
126+
nextver-
125127
126128
- name: Test
127129
run: cargo test --target ${{ matrix.triple }}
@@ -226,7 +228,7 @@ jobs:
226228
gh release upload "${TAG_NAME}" ../binary-archives/*
227229
228230
- name: Publish to crates.io
229-
run: cargo publish -C source
231+
run: cargo -C source publish
230232
env:
231233
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
232234

0 commit comments

Comments
 (0)