ci(lua): also copy annotations

This commit is contained in:
əlemi 2024-09-10 16:14:35 +02:00
parent 3c6441678d
commit b115b2cd92
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -75,16 +75,20 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [build, build-macos] needs: [build, build-macos]
steps: steps:
- uses: actions/checkout@v4
- run: mkdir dist/lua/publish
- uses: webfactory/ssh-agent@v0.9.0 - uses: webfactory/ssh-agent@v0.9.0
with: with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/download-artifact@v4 - uses: actions/download-artifact@v4
with: with:
pattern: codemp-lua-* pattern: codemp-lua-*
- run: tree path: dist/lua/publish
- run: tree dist/lua
- run: scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/lua/annotations.lua dev@codemp.dev:/srv/http/codemp/files/releases/lua/
# TODO ugly fix to deal with folders on this side... # TODO ugly fix to deal with folders on this side...
- name: copy files on remote - name: copy files on remote
run: | run: |
for DIR in $(ls); do for DIR in $(ls dist/lua/publish); do
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null $DIR/* dev@codemp.dev:/srv/http/codemp/files/releases/lua/ scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/lua/publish/$DIR/* dev@codemp.dev:/srv/http/codemp/files/releases/lua/
done done