Browse code

Only upload binaries when main branch is built.

Andrew Alderwick authored on 14/10/2021 23:17:43
Showing 1 changed files
... ...
@@ -33,6 +33,7 @@ tasks:
33 33
         ssh mac "rm -f uxn-macos.tar.gz; export PATH=\"\${PATH}:/usr/local/bin\"; set -ex; cd uxn; git fetch; git checkout .; git clean -xfd; git checkout $(cd uxn && git rev-parse HEAD); ./build.sh --no-run; mv bin uxn; tar -zcf ../uxn-macos.tar.gz uxn"
34 34
         rsync mac:uxn-macos.tar.gz out/
35 35
     - upload: |
36
+        if [ "$(cd uxn && git rev-parse HEAD)" != "$(cat uxn/.git/refs/remotes/origin/main)" ]; then exit; fi
36 37
         ls -l out
37 38
         tar -czf out.tar.gz -C out uxn-linux-amd64.tar.gz uxn-windows-64bit.zip uxn-macos.tar.gz
38 39
         acurl() {