mirror of
https://github.com/deployphp/action.git
synced 2024-11-23 04:19:02 +00:00
509bdbe5e4
* Fixed example to fetch master * Updates repository name to reflect Github repo and action
1.0 KiB
1.0 KiB
GitHub Action for Deployer
- name: Deploy
uses: deployphp/action@master
with:
private-key: ${{ secrets.PRIVATE_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
dep: deploy prod -v
Inputs
private-key
- Required. A private key to accessing servers.known-hosts
- Optional. Host fingerprints. If omittedStrictHostKeyChecking=no
will be used.dep
- Required. Arguments to pass to Deployer command.
Deployer version
First, the action will check for Deployer bin at those paths:
vendor/bin/dep
bin/dep
deployer.phar
If bin not found, phar version will be downloaded.
Example
deploy:
name: Deploy to prod
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup PHP
uses: shivammathur/setup-php@master
with:
php-version: 7.4
- name: Deploy
uses: deployphp/action@master
with:
private-key: ${{ secrets.PRIVATE_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
dep: deploy prod -v