mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-11-20 11:21:14 +00:00
Re-enable cargo publish
This commit is contained in:
parent
659a25d130
commit
68e3c6b952
1 changed files with 39 additions and 0 deletions
39
.drone.yml
39
.drone.yml
|
@ -381,3 +381,42 @@ depends_on:
|
||||||
trigger:
|
trigger:
|
||||||
event:
|
event:
|
||||||
- tag
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue