@@ -3,7 +3,20 @@ name: Build and Publish to APT
33on :
44 release :
55 types : [published]
6-
6+ workflow_dispatch :
7+ inputs :
8+ tag_name :
9+ description : " Release tag name for testing (e.g., 2.1.2)"
10+ required : true
11+ default : " "
12+ build_dists :
13+ description : " Distributions to build for (comma-separated, e.g., focal,jammy, noble)"
14+ required : false
15+ default : " focal,jammy,noble"
16+ smoke_test_images :
17+ description : " Docker images for smoke testing (comma-separated, e.g., ubuntu:20.04,ubuntu:22.04,ubuntu:24.04)"
18+ required : false
19+ default : " ubuntu:20.04,ubuntu:22.04,ubuntu:24.04"
720jobs :
821 build-source-package :
922 runs-on : ubuntu-latest
@@ -120,6 +133,7 @@ jobs:
120133 uses : actions/download-artifact@v4
121134 with :
122135 name : binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
136+ path : binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
123137 - name : Install packages
124138 run : |
125139 apt-get update
@@ -149,10 +163,20 @@ jobs:
149163 run : |
150164 curl -sLO https://github.com/deb-s3/deb-s3/releases/download/${{ env.DEB_S3_VERSION }}/deb-s3-${{ env.DEB_S3_VERSION }}.gem
151165 gem install deb-s3-${{ env.DEB_S3_VERSION }}.gem
152- - name : Upload packages
166+ - name : Quick hack to deal with duplicate _all packages
153167 run : |
154168 # Quick hack to deal with duplicate _all packages
155169 rm -f binary-*-i386/*_all.deb
170+ - name : List all packages to be uploaded
171+ run : |
172+ for dir in binary-*; do \
173+ dist=$(echo $dir | cut -d- -f 2) ; \
174+ ls -lha $dir/*.deb ; \
175+ done
176+ - name : Upload packages
177+ # We stop here on the workflow dispatch smoke tests and on the preleases
178+ if : github.event_name == 'release' && github.event.release.prerelease == false
179+ run : |
156180 for dir in binary-*; do \
157181 dist=$(echo $dir | cut -d- -f 2) ; \
158182 deb-s3 upload \
0 commit comments