mirror of
https://github.com/deployphp/action.git
synced 2025-11-11 11:44:11 +00:00
GitHub Action for Deployer
| node_modules | ||
| action.yaml | ||
| index.js | ||
| LICENSE | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
GitHub Action for Deployer
Inputs
private-key
Required. A private key to accessing servers.
known-hosts
Optional. Host fingerprints. If omitted StrictHostKeyChecking=no will be used.
dep
Arguments to pass to Deployer command.
Deployer version
First, the action will check for Deployer bin at those paths:
vendor/bin/depbin/depdeployer.pharIf 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@v1
with:
private-key: ${{ secrets.PRIVATE_KEY }}
known-hosts: ${{ secrets.KNOWN_HOSTS }}
dep: deploy prod -v