automate cargo publish
This commit is contained in:
parent
92e413de50
commit
a498e1416f
21
.drone.yml
21
.drone.yml
@ -14,23 +14,16 @@ steps:
|
|||||||
- 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
|
- 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
|
||||||
- cargo test
|
- cargo test
|
||||||
|
|
||||||
- name: build
|
- name: publish
|
||||||
image: rust:1.43.0
|
image: rust:1.43.0
|
||||||
|
environment:
|
||||||
|
CARGO_REGISTRY_TOKEN:
|
||||||
|
from_secret: cargo_tkn
|
||||||
commands:
|
commands:
|
||||||
|
- grep -E 'version ?= ?"${DRONE_TAG}"' -i Cargo.toml || (printf "incorrect crate/tag version" && exit 1)
|
||||||
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
|
- apt update && apt install -y libkeyutils-dev libclang-dev clang pkg-config
|
||||||
- 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
|
- 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
|
||||||
- cargo install -f --path . --root .
|
- cargo package --all-features
|
||||||
when:
|
- cargo publish --all-features
|
||||||
event: tag
|
|
||||||
- name: publish
|
|
||||||
image: plugins/github-release
|
|
||||||
settings:
|
|
||||||
api_key:
|
|
||||||
from_secret: github_release
|
|
||||||
files:
|
|
||||||
- bin/fido2luks
|
|
||||||
checksum:
|
|
||||||
- md5
|
|
||||||
- sha256
|
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user