2020-11-11 01:10:29 +00:00
|
|
|
# GitHub Action for Deployer
|
2020-11-10 22:49:10 +00:00
|
|
|
|
2020-11-13 20:47:43 +00:00
|
|
|
```yaml
|
|
|
|
- name: Deploy
|
2021-10-15 21:07:42 +00:00
|
|
|
uses: deployphp/action@v1
|
2020-11-13 20:47:43 +00:00
|
|
|
with:
|
|
|
|
private-key: ${{ secrets.PRIVATE_KEY }}
|
2021-10-15 21:07:42 +00:00
|
|
|
dep: deploy
|
2020-11-13 20:47:43 +00:00
|
|
|
```
|
2020-11-13 20:45:33 +00:00
|
|
|
|
2020-11-13 20:47:43 +00:00
|
|
|
## Inputs
|
2020-11-13 20:45:33 +00:00
|
|
|
|
2021-10-15 20:41:21 +00:00
|
|
|
See [action.yaml](action.yaml).
|
2020-11-13 20:45:33 +00:00
|
|
|
|
2020-11-10 22:49:10 +00:00
|
|
|
## Example
|
|
|
|
|
|
|
|
```yaml
|
2021-10-15 21:07:42 +00:00
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
|
|
|
php-version: '8.0'
|
|
|
|
|
|
|
|
- name: Deploy
|
|
|
|
uses: deployphp/action@v1
|
|
|
|
with:
|
|
|
|
private-key: ${{ secrets.PRIVATE_KEY }}
|
|
|
|
dep: deploy
|
2020-11-10 22:49:10 +00:00
|
|
|
```
|