mirror of
https://github.com/hexedtech/codemp.git
synced 2024-12-23 05:14:54 +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
|
||||
needs: [build, build-macos]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: mkdir dist/lua/publish
|
||||
- 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
|
||||
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...
|
||||
- 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/
|
||||
for DIR in $(ls dist/lua/publish); do
|
||||
scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/lua/publish/$DIR/* dev@codemp.dev:/srv/http/codemp/files/releases/lua/
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue