GitHub Action for Deployer
Go to file
taqie 4b3c564869
Update index.js (#9)
Added permission to execut
2021-04-14 20:04:09 +02:00
node_modules Add missing npm package 2020-12-05 21:34:05 +01:00
action.yaml Update action.yaml 2020-11-17 16:56:19 +03:00
index.js Update index.js (#9) 2021-04-14 20:04:09 +02:00
LICENSE Add action 2020-11-10 23:03:10 +01:00
package-lock.json Fix argv split 2020-12-04 00:05:51 +01:00
package.json Fix argv split 2020-12-04 00:05:51 +01:00
README.md Fixed example to fetch master (#2) 2020-11-17 16:55:56 +03:00

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 omitted StrictHostKeyChecking=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