I'm trying to create an auto-deploy file for laravel project.
Here is my code of the yml file. jobs: deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Deployment
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
username: ${{ secrets.SSH_USERNAME }}
script: |
cd path-to-my-directory
git pull
php artisan migrate
git pull returns could not read Username for 'https://github.com': No such device or address
error. But I sure that username, key, host
are set properly.
Can't solve the problem or find a similar issue with solution