20 lines
493 B
YAML
20 lines
493 B
YAML
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
|
|
with:
|
|
host: mopidy1.local
|
|
username: root
|
|
key: ${{ secrets.DEPLOY_KEY }}
|
|
script: |
|
|
pip uninstall -y mopidy-smartplaylists
|
|
pip install git+https://code.lab.unbl.ink/secstate/mopidy-smartplaylists@main
|
|
service mopidy restart
|