[actions] Add gitea deploy action
Some checks failed
Deploy to mopidy1 / deploy (push) Failing after 4s
Some checks failed
Deploy to mopidy1 / deploy (push) Failing after 4s
This commit is contained in:
19
.gitea/workflows/deploy.yml
Normal file
19
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
||||
Reference in New Issue
Block a user