mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
ci(lua): also copy annotations
This commit is contained in:
parent
3c6441678d
commit
b115b2cd92
1 changed files with 7 additions and 3 deletions
10
.github/workflows/lua.yml
vendored
10
.github/workflows/lua.yml
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue