From 605bead83f490a1c422e5f5e58e0d151f8bcb214 Mon Sep 17 00:00:00 2001 From: nyyu Date: Tue, 3 Jan 2023 20:48:17 +0100 Subject: [PATCH] fix(ci): don't deploy on MR --- .woodpecker/.linux.yml | 1 + .woodpecker/.mingw.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.woodpecker/.linux.yml b/.woodpecker/.linux.yml index cd53c91..67f2402 100644 --- a/.woodpecker/.linux.yml +++ b/.woodpecker/.linux.yml @@ -17,5 +17,6 @@ pipeline: - curl -f -i -u $REGISTRY_USERNAME:$REGISTRY_PASSWORD -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.asset1=@target/release/cggitem_sets -F maven2.asset1.extension=elf -F maven2.asset1.classifier=linux-x64 secrets: [registry_username, registry_password] when: + event: [ push, manual, tag ] branch: - master diff --git a/.woodpecker/.mingw.yml b/.woodpecker/.mingw.yml index 30af03b..48fbf71 100644 --- a/.woodpecker/.mingw.yml +++ b/.woodpecker/.mingw.yml @@ -20,5 +20,6 @@ pipeline: - curl -f -i -u $REGISTRY_USERNAME:$REGISTRY_PASSWORD -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.asset1=@target/x86_64-pc-windows-gnu/release/cggitem_sets.exe -F maven2.asset1.extension=exe -F maven2.asset1.classifier=mingw-x64 secrets: [registry_username, registry_password] when: + event: [ push, manual, tag ] branch: - master \ No newline at end of file