name: Deploy

# Temporary
on: [ push ]
#on:
#  push:
#    branches:
#      - master

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    environment: production
    steps:
      - name: Check out repository code
        uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.9
      - name: Add SSH key
        uses: webfactory/ssh-agent@v0.5.3
        with:
          ssh-private-key: ${{ secrets.DEPLOY_KEY }}
      - name: Run script
        run: |
          ./server/deploy.sh ./server/

name: Deploy

# Temporary
on: [ push ]
#on:
#  push:
#    branches:
#      - master

jobs:
  deploy:
    name: Deploy
    runs-on: ubuntu-latest
    environment: production
    steps:
      - name: Check out repository code
        uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.9
      - name: Add SSH key
        uses: webfactory/ssh-agent@v0.5.3
        with:
          ssh-private-key: ${{ secrets.DEPLOY_KEY }}
      - name: Add known hosts
        run: |
          ssh-keyscan -H 157.193.252.131 >> ~/.ssh/known_hosts
      - name: Run script
        run: |
          ./server/deploy.sh ./server/

Add king to known hosts
Add king to known hosts
