actions: fix deploy

master
pictuga 2023-06-26 01:29:00 +02:00
parent d27fc93f75
commit f4da40fffb
1 changed files with 8 additions and 18 deletions

View File

@ -40,24 +40,6 @@ jobs:
uses: https://github.com/pypa/gh-action-pypi-publish@release/v1 uses: https://github.com/pypa/gh-action-pypi-publish@release/v1
with: with:
password: ${{ secrets.pypi_api_token }} password: ${{ secrets.pypi_api_token }}
- name: Push python package to the server
uses: https://github.com/appleboy/scp-action@v0.1.4
with:
host: ${{ secrets.ssh_host }}
username: ${{ secrets.ssh_user }}
key: ${{ secrets.ssh_key }}
source: dist/morss-*.tar.gz
target: /home/ubuntu
- name: Install & reload the server
uses: https://github.com/appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.ssh_host }}
username: ${{ secrets.ssh_user }}
key: ${{ secrets.ssh_key }}
script: |
sudo pip install --upgrade dist/morss*-.tar.gz[full]
sudo rm -r dist
sudo morss-helper reload
docker-publish-deploy: docker-publish-deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -86,3 +68,11 @@ jobs:
platforms: linux/amd64,linux/arm64,linux/arm/v7 platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true push: true
tags: ${{ secrets.docker_repo }} tags: ${{ secrets.docker_repo }}
- name: Deploy on server
uses: https://github.com/appleboy/ssh-action@v0.1.10
with:
host: ${{ secrets.ssh_host }}
username: ${{ secrets.ssh_user }}
key: ${{ secrets.ssh_key }}
script: morss-update