From a17c0e0ba59edf699eda6bb0b08e87795749ed18 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 10 Sep 2024 03:25:23 +0200 Subject: [PATCH] ci(lua): ugly directories fix, docs on todos --- .github/workflows/java.yml | 2 ++ .github/workflows/lua.yml | 8 +++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 75be53e..87d838f 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -37,3 +37,5 @@ jobs: with: name: codemp-java-${{ matrix.platform.target }} path: dist/java/build/libs + + # TODO add a publish step to maven central diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index 30979ef..6f3d4cc 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -63,6 +63,7 @@ jobs: # name: codemp-lua-${{ matrix.platform.target }} # path: target/release/${{ matrix.platform.filename }} + # TODO this just copies files on our server, maybe publish on luarocks? maybe do it properly with versions publish: runs-on: ubuntu-latest needs: [build] @@ -74,4 +75,9 @@ jobs: with: pattern: codemp-lua-* - run: tree - - run: scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null * dev@codemp.dev:/srv/http/codemp/files/releases/lua/ + # TODO ugly fix to deal with folders on this side... + - name: copy files on remote + run: | + for DIR in $(ls); do + scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $DIR/* dev@codemp.dev:/srv/http/codemp/files/releases/lua/ + done