This commit is contained in:
parent
bdfa26ec84
commit
fdb6f6a121
1 changed files with 26 additions and 26 deletions
52
.drone.yml
52
.drone.yml
|
@ -52,31 +52,31 @@ steps:
|
|||
when:
|
||||
branch:
|
||||
- master
|
||||
---
|
||||
kind: pipeline
|
||||
type: exec
|
||||
name: windows-msvc
|
||||
#---
|
||||
#kind: pipeline
|
||||
#type: exec
|
||||
#name: windows-msvc
|
||||
|
||||
platform:
|
||||
os: windows
|
||||
arch: amd64
|
||||
#platform:
|
||||
# os: windows
|
||||
# arch: amd64
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
commands:
|
||||
- rustup update
|
||||
- cargo test
|
||||
- cargo clippy
|
||||
- cargo build --release
|
||||
environment:
|
||||
CARGO_HOME: c:/drone/cargo
|
||||
RUSTUP_HOME: c:/drone/rustup
|
||||
- name: deploy
|
||||
commands:
|
||||
- curl.exe -u drone:$Env: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.asset1=@target/release/cggitem_sets.exe -F maven2.asset1.extension=exe -F maven2.asset1.classifier=msvc-x64
|
||||
environment:
|
||||
MVN_PWD:
|
||||
from_secret: maven_password
|
||||
when:
|
||||
target:
|
||||
- windows-msvc
|
||||
#steps:
|
||||
#- name: build
|
||||
# commands:
|
||||
# - rustup update
|
||||
# - cargo test
|
||||
# - cargo clippy
|
||||
# - cargo build --release
|
||||
# environment:
|
||||
# CARGO_HOME: c:/drone/cargo
|
||||
# RUSTUP_HOME: c:/drone/rustup
|
||||
#- name: deploy
|
||||
# commands:
|
||||
# - curl.exe -u drone:$Env: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.asset1=@target/release/cggitem_sets.exe -F maven2.asset1.extension=exe -F maven2.asset1.classifier=msvc-x64
|
||||
# environment:
|
||||
# MVN_PWD:
|
||||
# from_secret: maven_password
|
||||
# when:
|
||||
# branch:
|
||||
# - master
|
||||
|
|
Loading…
Add table
Reference in a new issue