[ci] Try to fix deploys
Some checks failed
CI / test (push) Successful in 1m20s
CI / deploy (push) Failing after 45s

This commit is contained in:
2026-06-28 12:25:09 -04:00
parent acb260ee5e
commit b5ed80c9d9

View File

@ -32,7 +32,32 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- name: SSH and upgrade package
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Build frontend assets
run: |
npm ci
npm run build
- name: Build Python sdist
run: |
pip install build
python -m build --sdist
- name: Copy sdist to server
uses: appleboy/scp-action@v0.1.7
with:
host: mopidy-dev.service
username: root
key: ${{ secrets.JAIL_KEY }}
target: /tmp/iris-deploy/
source: dist/
- name: Install and restart
uses: appleboy/ssh-action@v1.0.3
with:
host: mopidy-dev.service
@ -40,5 +65,6 @@ jobs:
key: ${{ secrets.JAIL_KEY }}
script: |
pip uninstall -y mopidy-iris
pip install git+https://code.lab.unbl.ink/secstate/Iris@main
pip install /tmp/iris-deploy/dist/*.tar.gz
rm -rf /tmp/iris-deploy
service mopidy restart