From f4da40fffb776a4af650c1d62c36af7b65c25cb3 Mon Sep 17 00:00:00 2001 From: pictuga Date: Mon, 26 Jun 2023 01:29:00 +0200 Subject: [PATCH] actions: fix deploy --- .github/workflows/default.yml | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 6b34325..b08dda9 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -40,24 +40,6 @@ jobs: uses: https://github.com/pypa/gh-action-pypi-publish@release/v1 with: 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: runs-on: ubuntu-latest @@ -86,3 +68,11 @@ jobs: platforms: linux/amd64,linux/arm64,linux/arm/v7 push: true 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