From 81066e7670bf8b113017f5756d49b11e9359e363 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 28 Mar 2021 18:32:09 +0200 Subject: [PATCH] test deploy --- .drone.yml | 6 +++--- Cargo.lock | 2 +- Cargo.toml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 11d57e9..794f596 100644 --- a/.drone.yml +++ b/.drone.yml @@ -20,7 +20,7 @@ steps: image: alpine:latest commands: - apk add --no-cache curl - - 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 + - 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) -F maven2.classifier=mingw -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 @@ -46,7 +46,7 @@ steps: image: alpine:latest commands: - apk add --no-cache curl - - 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/release/cggitem_sets -F maven2.asset1.extension=elf + - 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) -F maven2.classifier=linux-x64 -F maven2.asset1=@target/release/cggitem_sets -F maven2.asset1.extension=elf environment: MVN_PWD: from_secret: maven_password @@ -74,7 +74,7 @@ steps: RUSTUP_HOME: c:/drone/rustup - name: deploy commands: - - 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=1.0.0 -F maven2.classifier=msvc -F maven2.asset1=@target/release/cggitem_sets.exe -F maven2.asset1.extension=exec + - curl.exe -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=1.0.0 -F maven2.classifier=msvc -F maven2.asset1=@target/release/cggitem_sets.exe -F maven2.asset1.extension=exec environment: MVN_PWD: from_secret: maven_password diff --git a/Cargo.lock b/Cargo.lock index bcf4c7f..0d2a08a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,7 +43,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cggitem_sets" -version = "0.1.0" +version = "1.0.0" dependencies = [ "indexmap", "lazy_static", diff --git a/Cargo.toml b/Cargo.toml index a21c6a0..6c94d49 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,7 +2,7 @@ authors = ["nyyu "] edition = "2018" name = "cggitem_sets" -version = "0.1.0" +version = "1.0.0" [dependencies] indexmap = {version = "1.6", features = ["serde-1", "rayon"]}