From dd3773da428fad6a275cc51ad1f3493731e63e81 Mon Sep 17 00:00:00 2001 From: egamorf76 Date: Mon, 28 Apr 2025 01:05:38 +0200 Subject: [PATCH] Use script to deploy api --- .gitea/workflows/deploy.yaml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index ac3acd2..3b1d860 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -56,17 +56,6 @@ jobs: source: "./blazor/*" target: "/var/www/" - - name: Update Entity Framework API on server - uses: appleboy/ssh-action@v1 - with: - host: ${{ secrets.DEV_HOST }} - username: ${{ secrets.DEV_USERNAME }} - password: ${{ secrets.DEV_PASSWORD }} - port: ${{ secrets.DEV_PORT }} - script: | - cd /home/gameideas/api - dotnet ef database update --no-build - - name: Start API on server uses: appleboy/ssh-action@v1 with: @@ -74,7 +63,4 @@ jobs: username: ${{ secrets.DEV_USERNAME }} password: ${{ secrets.DEV_PASSWORD }} port: ${{ secrets.DEV_PORT }} - script: | - pkill -f "GameIdeas.WebAPI" || true - cd /home/gameideas/api - nohup dotnet GameIdeas.WebAPI.dll > api.log 2>&1 & \ No newline at end of file + script: bash ./update-api.sh \ No newline at end of file