Skip to content

Commit a498e14

Browse files
committed
automate cargo publish
1 parent 92e413d commit a498e14

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.drone.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,16 @@ steps:
1414
- 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
1515
- cargo test
1616

17-
- name: build
17+
- name: publish
1818
image: rust:1.43.0
19+
environment:
20+
CARGO_REGISTRY_TOKEN:
21+
from_secret: cargo_tkn
1922
commands:
23+
- grep -E 'version ?= ?"${DRONE_TAG}"' -i Cargo.toml || (printf "incorrect crate/tag version" && exit 1)
2024
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
2125
- 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
2328
when:
2429
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

0 commit comments

Comments
 (0)