Skip to content

Commit cd8b1be

Browse files
Update build-deb.yaml
1 parent 2a62dc8 commit cd8b1be

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/workflows/build-deb.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,21 @@ jobs:
136136
-H "Content-Type: application/vnd.debian.binary-package" \
137137
--data-binary @"$FILE_PATH" \
138138
"$UPLOAD_URL?name=$FILE_NAME"
139-
139+
140+
- name: Upload to APT repository
141+
env:
142+
DEPLOY_TOKEN: ${{ secrets.BS_UPLOAD_KEY }}
143+
run: |
144+
FILENAME="artifacts/${{ matrix.os }}/${{ matrix.version }}/robotkernel-service-helper_${{ steps.sanitize.outputs.sanitized_image }}.deb"
145+
146+
curl -X POST https://deb.burger-system.de/upload \
147+
-H "Authorization: Bearer $DEPLOY_TOKEN" \
148+
-F "deb=@../${FILENAME}"
149+
# -F "changes=@../yourpackage.changes" \
150+
# -F "dsc=@../yourpackage.dsc"
151+
140152
- name: Upload to Cloudsmith (${{ matrix.os }}/${{ matrix.version }})
141-
#if: startsWith(github.ref, 'refs/tags/')
153+
if: startsWith(github.ref, 'refs/tags/')
142154
env:
143155
CLOUDSMITH_API_KEY: ${{ secrets.CLOUDSMITH_API_KEY }}
144156
shell: bash

0 commit comments

Comments
 (0)