Comments (10)
@neidiom can you give an example of how you are running composer require deployer/deployer --dev
? I cannot seem to get this to work, still running into the "failed with ENOENT" errors.
from action.
Hmmmmm, can tell what is wrong.
from action.
@lcharette @antonmedv any ideas on how to fix this?
from action.
It should be fixed in new release. Please test it.
from action.
@antonmedv does not work for me, getting the following error
Error: Command failed with ENOENT: deployer.phar deploy test -v
spawnSync deployer.phar ENOENT
from action.
Now such file? Does any knows how to debug it?
from action.
@antonmedv if I add deployer with composer with the command below then it works. Any idea how to debug?
composer require deployer/deployer --dev
from action.
@antonmedv I had a similar problem. I think this bug is caused by the fact that if deployer.phar does not exist then you download it but do not give it permission to execute
from action.
I'm also getting similar error when trying to use the action
with:
private-key: ***
dep: deploy *** *** *** staging -v
(node:2511) UnhandledPromiseRejectionWarning: Error: spawn deployer.phar ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(node:2511) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:2511) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
My GH action looks like this
name: Deploy
on:
# Run on pushes to `staging` branch only.
push:
paths-ignore:
- '**.md'
branches:
- staging
- '!main'
# Allow manually triggering the workflow. Used for production deploy
workflow_dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: [7.4]
node: [12.x]
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: PHP setup
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
tools: composer:v2, deployer, wp-cli
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Deploy to staging
if: ${{ github.ref == 'refs/heads/staging' }}
uses: deployphp/action@master
with:
private-key: ${{ secrets.STAGING_KEY }}
dep: deploy ${{ secrets.ADMIN_USER }} ${{ secrets.ADMIN_EMAIL }} ${{ secrets.ADMIN_PASSWORD }} staging -v
- name: Deploy to production
if: ${{ github.ref == 'refs/heads/main' }}
uses: deployphp/action@master
with:
private-key: ${{ secrets.PRODUCTION_KEY }}
dep: deploy ${{ secrets.ADMIN_USER }} ${{ secrets.ADMIN_EMAIL }} ${{ secrets.ADMIN_PASSWORD }} production
from action.
I had the same problem, created fork and opened pull request, you can check it https://github.com/zivan/action
from action.
Related Issues (20)
- Task composer install and npm build in runner HOT 7
- PHP Warning: require(contrib/npm.php): Failed to open stream: No such file or directory in HOT 1
- Deploy failing HOT 18
- How to set directory where deploy has to be made HOT 1
- Ambiguous key verification error HOT 2
- Deployer appends known hosts rather than replacing them
- curl -LO undefined HOT 3
- Bug: verbosity level option doesn't work HOT 3
- Username / Password authentication HOT 1
- Deployer 7.3.1 is missing in the manifest HOT 2
- `options` is not working HOT 2
- Puzzling ssh fail HOT 1
- GitHub Actions' native `run` HOT 3
- Check composer global home for dep binary as well
- `Invalid JSON in options` error when omitting the options input entirely HOT 2
- Node.js 16 actions are deprecated -> use Node.js 20 instead HOT 1
- Upgrade Node.js to version 20 HOT 3
- Curl error HOT 2
- Deleted
- Command "deploy" is not defined. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action.