9447921eea73ca6677357a82a68a2d4896dc67dc — Louis Solofrizzo 9 months ago eea924e
artifacts: Add upload to latest

Signed-off-by: Louis Solofrizzo <lsolofrizzo@online.net>
1 files changed, 3 insertions(+), 1 deletions(-)

M artifacts/CMakeLists.txt
M artifacts/CMakeLists.txt => artifacts/CMakeLists.txt +3 -1
@@ 5,7 5,9 @@       add_custom_target(artifacts-upload-${BINARY}
          COMMAND ssh root@cdn.ne02ptzero.me mkdir -p /usr/share/artifacts/${PROJECT}/`git describe --abbrev=0`/${ARCH} &&
-             scp -oStrictHostKeyChecking=no ${BINARY} root@cdn.ne02ptzero.me:/usr/share/artifacts/${PROJECT}/`git describe --abbrev=0`/${ARCH}/${BINARY}
+             scp -oStrictHostKeyChecking=no ${BINARY} root@cdn.ne02ptzero.me:/usr/share/artifacts/${PROJECT}/`git describe --abbrev=0`/${ARCH}/${BINARY} &&
+             ssh root@cdn.ne02ptzero.me mkdir -p /usr/share/artifacts/${PROJECT}/latest/${ARCH} &&
+             scp -oStrictHostKeyChecking=no ${BINARY} root@cdn.ne02ptzero.me:/usr/share/artifacts/${PROJECT}/latest/${ARCH}/${BINARY} &&
          DEPENDS ${BINARY}
      )