diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index a357ea8f..988ceae4 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -32,25 +32,13 @@ jobs: runs-on: ubuntu-latest needs: test steps: - - uses: actions/checkout@v4 - - - uses: actions/setup-node@v4 + - name: SSH and upgrade package + uses: appleboy/ssh-action@v1.0.3 with: - node-version: 18 - - - name: Install dependencies - run: npm ci - - - name: Build assets - run: npm run build - - # TODO: Add your deploy step here, for example: - # - name: Build and push Docker image - # run: | - # docker build -t iris . - # docker push your-registry/iris:latest - # - # Or scp to a server: - # - name: Deploy via rsync - # run: | - # rsync -avz --delete mopidy_iris/ user@server:/path/to/deploy + host: mopidy-dev.service + username: root + key: ${{ secrets.JAIL_KEY }} + script: | + pip uninstall -y mopidy-iris + pip install git+https://code.lab.unbl.ink/secstate/Iris@main + service mopidy restart diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml deleted file mode 100644 index 6e9fb428..00000000 --- a/.gitea/workflows/deploy.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Deploy to mopidy1 -on: - push: - branches: [main] - -jobs: - deploy: - runs-on: ubuntu-latest - steps: - - name: SSH and upgrade package - uses: appleboy/ssh-action@v1.0.3 - with: - host: mopidy-dev.service - username: root - key: ${{ secrets.JAIL_KEY }} - script: | - pip uninstall -y mopidy-iris - pip install git+https://code.lab.unbl.ink/secstate/Iris@main - service mopidy restart