[ci] Try to fix deploys
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user