action
action copied to clipboard
BUG: Cannot execute two commands with Deployer Action in one workflow
Workflow (part)
- name: Build
uses: deployphp/action@v1
with:
private-key: "${{ secrets.DEV_PRIVATE_KEY }}"
deployer-binary: "vendor/bin/dep"
dep: "build"
- name: DEV environment deployment
uses: deployphp/action@v1
with:
private-key: "${{ secrets.DEV_PRIVATE_KEY }}"
deployer-binary: "vendor/bin/dep"
dep: "deploy-artifact develop"
Result

Upvote & Fund
- We're using Polar.sh so you can upvote and help fund this issue.
- We receive the funding once the issue is completed & confirmed by you.
- Thank you in advance for helping prioritize & fund our backlog.
Just encountered this as well. You need to add skip-ssh-setup: true to your second step
- name: Deploy
uses: deployphp/action@v1
with:
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
dep: deploy stage=staging -v --branch=${{ github.ref_name }}
- name: Unlock deploy if job was cancelled
uses: deployphp/action@v1
with:
skip-ssh-setup: true
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
dep: deploy:unlock stage=staging -v
if: cancelled()