[ci] Only run one action per push
All checks were successful
CI / test (push) Successful in 1m22s
CI / deploy (push) Successful in 32s

This commit is contained in:
2026-06-28 12:19:24 -04:00
parent 9c6ef68934
commit acb260ee5e
2 changed files with 9 additions and 40 deletions

View File

@ -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

View File

@ -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