feat(ci): ajoute l'upload Nexus des binaires
CI / build (push) Successful in 4m32s

This commit is contained in:
hermes-claw
2026-08-06 23:38:20 -04:00
parent 46bbf743ca
commit 4050872698
+20
View File
@@ -72,6 +72,26 @@ jobs:
name: binaires
path: build/*
- name: Upload to Nexus raw repository (tags only)
if: startsWith(github.ref, 'refs/tags/v')
env:
NEXUS_URL: ${{ secrets.NEXUS_URL }}
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
run: |
VERSION=${GITHUB_REF#refs/tags/}
for FILE in build/ntfy-bridge-*; do
[ -f "$FILE" ] || continue
FNAME=$(basename "$FILE")
echo "==> Uploading ${FNAME} to Nexus (${VERSION})..."
curl -sf -u "${NEXUS_USER}:${NEXUS_PASSWORD}" \
-X PUT \
-H "Content-Type: application/octet-stream" \
--data-binary "@${FILE}" \
"${NEXUS_URL}/repository/raw-hosted/ntfy-bridge/${VERSION}/${FNAME}" \
&& echo " OK" || echo " FAILED"
done
- name: Publish Release (tags only)
if: startsWith(github.ref, 'refs/tags/v')
run: |