This commit is contained in:
@@ -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: |
|
||||
|
||||
Reference in New Issue
Block a user