M .builds/publish.yml => .builds/publish.yml +15 -0
@@ 130,3 130,18 @@ tasks:
# hut runs, or it can't reach the API from outside the cluster.
sed -i 's|http://pages:5112|https://pages.srht.bigb.es|' ~/.config/hut/config
hut pages publish -d "$PAGES_DOMAIN" -s "$PAGES_SUBPATH" /home/build/site.tar.gz
+ - stage_artifacts: |
+ # `artifacts:` paths resolve relative to /home/build. Copy the four
+ # binaries + checksums.txt into the top level so they're easy to
+ # reference (and to keep the page tarball clean of duplicates).
+ cp /home/build/pages/cacher-linux-amd64 /home/build/
+ cp /home/build/pages/cacher-linux-arm64 /home/build/
+ cp /home/build/pages/cacher-darwin-amd64 /home/build/
+ cp /home/build/pages/cacher-darwin-arm64 /home/build/
+ cp /home/build/pages/checksums.txt /home/build/
+artifacts:
+ - cacher-linux-amd64
+ - cacher-linux-arm64
+ - cacher-darwin-amd64
+ - cacher-darwin-arm64
+ - checksums.txt