- name: Deploy
uses: deployphp/action@master
with:
private-key: ${{ secrets.PRIVATE_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
ssh-config: ${{ secrets.SSH_CONFIG }}
dep: deploy prod -vprivate-key- Required. A private key to accessing servers.known-hosts- Optional. Host fingerprints. If omittedStrictHostKeyChecking=nowill be used unlessssh-configis provided.ssh-config- Optional. SSH configuration.dep- Required. Arguments to pass to Deployer command.
First, the action will check for Deployer bin at those paths:
vendor/bin/depbin/depdeployer.phar
If bin not found, phar version will be downloaded.
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 }}
ssh-config: ${{ secrets.SSH_CONFIG }}
dep: deploy prod -v