Skip to content

Commit

Permalink
automate cargo publish
Browse files Browse the repository at this point in the history
  • Loading branch information
shimunn committed Jun 23, 2020
1 parent 92e413d commit a498e14
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
- cargo test

- name: build
- name: publish
image: rust:1.43.0
environment:
CARGO_REGISTRY_TOKEN:
from_secret: cargo_tkn
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
- 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
- cargo publish --all-features
when:
event: tag
- name: publish
image: plugins/github-release
settings:
api_key:
from_secret: github_release
files:
- bin/fido2luks
checksum:
- md5
- sha256
when:
event: tag

0 comments on commit a498e14

Please sign in to comment.