Closed benjaminmal closed 1 year ago
A workaround I found is to use composer to download the last version, and set deployer-binary
parameter:
- name: Download `deployer.phar`
run: composer global require deployer/deployer --no-interaction --verbose --ansi
- name: Get composer global bin-dir path
id: composer-bin-dir
run: echo "::set-output name=path::$(composer global config bin-dir --absolute)"
- name: Deploy
uses: deployphp/action@v1
with:
dep: deploy production
deployer-binary: ${{ steps.composer-bin-dir.outputs.path }}/dep
private-key: ${{ secrets.HOST_SSH_KEY }}
Same error. Thanks a lot @benjaminmal for working solution.
I also add
tools: composer:v2
to shivammathur/setup-php@v2
for composer installs.
Lets do it this way: if I gonna get donation in amount of $100, I'll work on create a link which points to latest dep phar.
@antonmedv Kind of expensive link :P I can suggest adding a latest
version in manifest.json and setting in the action latest
as default value for deployer-version
. It should work automatically in the action.
[
...
{
"name": "deployer.phar",
"sha1": "bf46ca3ff7339d644220e949c2c71994749cf561",
"url": "https:\/\/github.com\/deployphp\/deployer\/releases\/download\/v7.0.2\/deployer.phar",
"version": "7.0.2"
},
{
"name": "deployer.phar",
"sha1": "bf46ca3ff7339d644220e949c2c71994749cf561",
"url": "https:\/\/github.com\/deployphp\/deployer\/releases\/download\/v7.0.2\/deployer.phar",
"version": "latest"
}
]
Creating such automation. Or just a link which points to latests require non-zero amount of work. :p
Should be fixed.
I have this error when running my deployment workflow:
It turns out the version downloaded via https://deployer.org/deployer.phar is 6.8.0. I think the action should download the latest version available by default, or maybe a required parameter should be added to select the major version of the downloaded
deployer.phar
. Linked to https://github.com/deployphp/deployer/issues/3225.