File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -14,23 +14,16 @@ steps:
14
14
- echo 'deb http://http.us.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list.d/unstable.list && apt update && apt install -y libcryptsetup-dev
15
15
- cargo test
16
16
17
- - name : build
17
+ - name : publish
18
18
image : rust:1.43.0
19
+ environment :
20
+ CARGO_REGISTRY_TOKEN :
21
+ from_secret : cargo_tkn
19
22
commands :
23
+ - grep -E 'version ?= ?"${DRONE_TAG}"' -i Cargo.toml || (printf "incorrect crate/tag version" && exit 1)
20
24
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
21
25
- echo 'deb http://http.us.debian.org/debian unstable main non-free contrib' >> /etc/apt/sources.list.d/unstable.list && apt update && apt install -y libcryptsetup-dev
22
- - cargo install -f --path . --root .
26
+ - cargo package --all-features
27
+ - cargo publish --all-features
23
28
when :
24
29
event : tag
25
- - name : publish
26
- image : plugins/github-release
27
- settings :
28
- api_key :
29
- from_secret : github_release
30
- files :
31
- - bin/fido2luks
32
- checksum :
33
- - md5
34
- - sha256
35
- when :
36
- event : tag
You can’t perform that action at this time.
0 commit comments