Skip to content

Commit 0e8fa02

Browse files
committed
publish use devenv
1 parent 2de045e commit 0e8fa02

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,22 @@ jobs:
2121
with:
2222
ref: ${{ github.event.inputs.tag || github.ref }}
2323

24-
- name: Install Rust
25-
uses: dtolnay/rust-toolchain@stable
24+
- uses: cachix/install-nix-action@v26
25+
- uses: cachix/cachix-action@v14
26+
with:
27+
name: devenv
28+
- name: Install devenv.sh
29+
run: nix profile install nixpkgs#devenv
2630

2731
- uses: rust-lang/crates-io-auth-action@v1
2832
id: auth
2933

3034
- name: Publish secretspec crate
31-
run: cargo publish -p secretspec
35+
run: devenv shell cargo publish -p secretspec
3236
env:
3337
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}
3438

3539
- name: Publish secretspec-derive crate
36-
run: cargo publish -p secretspec-derive
40+
run: devenv shell cargo publish -p secretspec-derive
3741
env:
3842
CARGO_REGISTRY_TOKEN: ${{ steps.auth.outputs.token }}

0 commit comments

Comments
 (0)