From b5ed80c9d9952ec7bd5edde15e4b6ce35e4b4489 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Sun, 28 Jun 2026 12:25:09 -0400 Subject: [PATCH] [ci] Try to fix deploys --- .gitea/workflows/ci.yml | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 988ceae4..49cfcf9d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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