From abf370eb9dac4c589d8c554da3f74fd1f2c769f2 Mon Sep 17 00:00:00 2001 From: nyyu Date: Mon, 29 Jun 2020 13:26:50 +0200 Subject: [PATCH] publish to nexus --- .drone.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 970faa1..2752f61 100644 --- a/.drone.yml +++ b/.drone.yml @@ -6,9 +6,13 @@ steps: - name: build image: rust:alpine commands: - - apk add --no-cache mingw-w64-gcc musl-dev + - apk add --no-cache mingw-w64-gcc musl-dev curl - mkdir ~/.cargo - echo -e '[target.x86_64-pc-windows-gnu]\nlinker = "x86_64-w64-mingw32-gcc"\nar = "x86_64-w64-mingw32-gcc-ar"' > ~/.cargo/config - rustup toolchain install stable-x86_64-pc-windows-gnu - rustup target add x86_64-pc-windows-gnu - cargo build --release --target x86_64-pc-windows-gnu + - curl -u drone:$MVN_PWD -X POST 'https://nexus.nyyu.dev/service/rest/v1/components?repository=maven-releases' -F maven2.groupId=dev.nyyu -F maven2.artifactId=cggitem_sets -F maven2.version=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml)-$(date +%Y%m%d%H%M%S) -F maven2.asset1=@target/x86_64-pc-windows-gnu/release/cggitem_sets.exe -F maven2.asset1.extension=exe + environment: + MVN_PWD: + from_secret: maven_password