mirror of
https://github.com/deployphp/action.git
synced 2025-06-29 04:34:15 +00:00
Add deployer-version
This commit is contained in:
parent
fe854546be
commit
77ac0bfc15
3 changed files with 53 additions and 40 deletions
46
README.md
46
README.md
|
@ -2,42 +2,34 @@
|
|||
|
||||
```yaml
|
||||
- name: Deploy
|
||||
uses: deployphp/action@1
|
||||
uses: deployphp/action@v1
|
||||
with:
|
||||
private-key: ${{ secrets.PRIVATE_KEY }}
|
||||
dep: deploy all
|
||||
dep: deploy
|
||||
```
|
||||
|
||||
## Inputs
|
||||
|
||||
See [action.yaml](action.yaml).
|
||||
|
||||
## Deployer version
|
||||
|
||||
First, the action will check for Deployer binary at those paths:
|
||||
- `vendor/bin/dep`
|
||||
- `deployer.phar`
|
||||
|
||||
If the binary not found, phar version will be downloaded from
|
||||
[deployer.org](https://deployer.org/download).
|
||||
|
||||
## 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@master
|
||||
with:
|
||||
private-key: ${{ secrets.PRIVATE_KEY }}
|
||||
known-hosts: ${{ secrets.KNOWN_HOSTS }}
|
||||
ssh-config: ${{ secrets.SSH_CONFIG }}
|
||||
dep: deploy prod -v
|
||||
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
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue