Skip to content

Commit 71bd2fc

Browse files
Update build-deb.yaml
1 parent a70a623 commit 71bd2fc

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

.github/workflows/build-deb.yaml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -81,22 +81,38 @@ jobs:
8181
DEBFULLNAME="Robert Burger"
8282
8383
if ! dpkg-parsechangelog | grep -q "~${CODENAME}"; then
84-
dch --local ~${CODENAME} "Build for ${CODENAME}";
84+
dch --local ~${CODENAME} --distribution ${CODENAME} "Build for ${CODENAME}";
8585
fi
8686
8787
dpkg-buildpackage -us -uc -S
8888
dpkg-buildpackage -us -uc -d
8989
90-
- name: Collect .deb artifact
90+
- name: Debug artifact files 1
9191
run: |
92-
mkdir -p artifacts/${{ matrix.os }}/${{ matrix.version }}
93-
mv ../robotkernel-service-helper*.deb artifacts/${{ matrix.os }}/${{ matrix.version }}
94-
92+
ls -l ../
93+
9594
- name: Set sanitized image name
9695
id: sanitize
9796
run: |
9897
version=$(dpkg-parsechangelog | sed -n 's/^Version: //p')
99-
echo "sanitized_image=$(echo "${version}_amd64" | tr '/:' '--')" >> $GITHUB_OUTPUT
98+
echo "sanitized_image=$(echo "${version}" | tr '/:' '--')" >> $GITHUB_OUTPUT
99+
100+
- name: Upload to APT repository
101+
env:
102+
DEPLOY_TOKEN: ${{ secrets.BS_UPLOAD_KEY }}
103+
run: |
104+
FILENAME="../robotkernel-service-helper_${{ steps.sanitize.outputs.sanitized_image }}"
105+
106+
curl -X POST https://deb.burger-system.de/upload \
107+
-H "Authorization: Bearer $DEPLOY_TOKEN" \
108+
-F "deb=@${FILENAME}_amd64.deb" \
109+
-F "changes=@${FILENAME}.changes" \
110+
-F "dsc=@${FILENAME}.dsc"
111+
112+
- name: Collect .deb artifact
113+
run: |
114+
mkdir -p artifacts/${{ matrix.os }}/${{ matrix.version }}
115+
mv ../robotkernel-service-helper*.deb artifacts/${{ matrix.os }}/${{ matrix.version }}
100116
101117
- name: Upload .deb package artifact
102118
uses: actions/upload-artifact@v4
@@ -136,18 +152,7 @@ jobs:
136152
-H "Content-Type: application/vnd.debian.binary-package" \
137153
--data-binary @"$FILE_PATH" \
138154
"$UPLOAD_URL?name=$FILE_NAME"
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"
155+
151156
152157
- name: Upload to Cloudsmith (${{ matrix.os }}/${{ matrix.version }})
153158
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)