From 2f29f3349061d713be857bd75db244807070fdb9 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Wed, 11 Nov 2020 01:49:10 +0300 Subject: [PATCH] Update README.md --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/README.md b/README.md index 2a84c87..561ee2b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,23 @@ # action GitHub Action for Deployer + + +## Example + +```yaml +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 +```