From 68e3c6b952e29cd058b9c0124bca9af43eacd36d Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 25 Sep 2022 09:22:16 -0500 Subject: [PATCH] Re-enable cargo publish --- .drone.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.drone.yml b/.drone.yml index 2541bef..58774f7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -381,3 +381,42 @@ depends_on: trigger: event: - tag + +--- + +kind: pipeline +type: docker +name: publish-crate + +platform: + arch: amd64 + +clone: + disable: true + +steps: +- name: clone + image: alpine/git:latest + user: root + commands: + - git clone $DRONE_GIT_HTTP_URL . + - git checkout $DRONE_COMMIT + - chown -R 991:991 . + +- name: publish + image: asonix/rust-builder:latest-linux-amd64 + pull: always + environment: + CRATES_IO_TOKEN: + from_secret: crates_io_token + commands: + - cargo publish --token $CRATES_IO_TOKEN + +depends_on: +- build-amd64 +- build-arm64v8 +- build-arm32v7 + +trigger: + event: + - tag