deployphp / action

GitHub Action for Deployer
MIT License
227 stars 46 forks source link

Deployment failing #20

Closed jonassiewertsen closed 3 years ago

jonassiewertsen commented 3 years ago

Somehow my deployment is failing and it does look like the command could not be found. Deployer itself has been required via composer.

GitHub action failing

My workflow setup:

name: Deploy

on:
  push:
    branches: [ zero-downtime ]
  pull_request:
    branches: [ zero-downtime ]

jobs:
  deploy:

    runs-on: ubuntu-latest

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Setup PHP
        uses: shivammathur/setup-php@master
        with:
          php-version: 8.0
          extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
          coverage: none

      - name: Install dependencies
        run: composer install --no-progress --no-interaction

      - name: Deploy
        uses: deployphp/action@master
        with:
          private-key: ${{ secrets.PRIVATE_KEY }}
          dep: deploy -vvv

Upvote & Fund

Fund with Polar

jonassiewertsen commented 3 years ago

Might this be connected somehow?

https://github.com/deployphp/deployer/discussions/2493

jonassiewertsen commented 3 years ago

I made a stupid mistake by not setting up my SSH keys correctly.

I did not catch it at first because of the error message.