@@ -3,7 +3,20 @@ name: Build and Publish to APT
3
3
on :
4
4
release :
5
5
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"
7
20
jobs :
8
21
build-source-package :
9
22
runs-on : ubuntu-latest
@@ -120,6 +133,7 @@ jobs:
120
133
uses : actions/download-artifact@v4
121
134
with :
122
135
name : binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
136
+ path : binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
123
137
- name : Install packages
124
138
run : |
125
139
apt-get update
@@ -149,10 +163,20 @@ jobs:
149
163
run : |
150
164
curl -sLO https://github.com/deb-s3/deb-s3/releases/download/${{ env.DEB_S3_VERSION }}/deb-s3-${{ env.DEB_S3_VERSION }}.gem
151
165
gem install deb-s3-${{ env.DEB_S3_VERSION }}.gem
152
- - name : Upload packages
166
+ - name : Quick hack to deal with duplicate _all packages
153
167
run : |
154
168
# Quick hack to deal with duplicate _all packages
155
169
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 : |
156
180
for dir in binary-*; do \
157
181
dist=$(echo $dir | cut -d- -f 2) ; \
158
182
deb-s3 upload \
0 commit comments