Use script to deploy api
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 53s
All checks were successful
Game Ideas build for PR / build_test (pull_request) Successful in 53s
This commit is contained in:
@@ -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 &
|
||||
script: bash ./update-api.sh
|
||||
Reference in New Issue
Block a user