From 404fa0f241906cb42168d550178d6b7ff7eceadf Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 10 Sep 2024 02:06:57 +0200 Subject: [PATCH] ci(lua): push artifacts on our server maybe consider luarocks in the future? --- .github/workflows/lua.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/lua.yml b/.github/workflows/lua.yml index 8d7d967..97ca7a9 100644 --- a/.github/workflows/lua.yml +++ b/.github/workflows/lua.yml @@ -37,3 +37,16 @@ jobs: with: name: codemp-lua-${{ matrix.platform.target }} path: target/release/${{ matrix.platform.filename }} + + publish: + runs-on: ubuntu-latest + needs: [build] + steps: + - uses: webfactory/ssh-agent@v0.9.0 + with: + ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} + - uses: actions/download-artifact@v4 + with: + pattern: codemp-lua-* + - run: tree + - run: scp * dev@codemp.dev:/srv/http/codemp/files/releases/lua/