Properly handle binary package reuplods. (#10878)
PackageCloud does not allow duplicate uploads, and we currently have no good way to avoid duplicate nightly builds, so we need to remove any existing packages with the same name before we upload newly built packages.
Austin S. Hemmelgarn committed
Apr 5, 2021 at 07:11 UTC
bc1ff185b88772298314edb4079860b1eb874f68
1 file changed
+1
.github/workflows/packaging.yml
+1
@@ -121,6 +121,7 @@ jobs:
121
run: |
122
echo "Packages to upload:\n$(ls artifacts/*.${{ matrix.format }})"
123
for pkgfile in artifacts/*.${{ matrix.format }} ; do
124
+ .github/scripts/package_cloud_wrapper.sh yank ${{ env.repo }}/${{ matrix.pkgclouddistro }} ${pkgfile} || true
125
.github/scripts/package_cloud_wrapper.sh push ${{ env.repo }}/${{ matrix.pkgclouddistro }} ${pkgfile}
126
done
127
- name: Clean