Skip to content

Update to Deployer 7 #60

Update to Deployer 7

Update to Deployer 7 #60

Workflow file for this run

name: Deploy
on:
push:
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: shivammathur/setup-php@b7d1d9c9a92d8d8463ce36d7f60da34d461724f8
with:
php-version: "7.4"
- uses: actions/checkout@v2
- uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Install Dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Generate key
run: php artisan key:generate
- name: Configure SSH hosts
run: ssh-keyscan -H app.collabfinder.net >> ~/.ssh/known_hosts
- name: Deploy with deployer
env:
DEPLOYER_PATH: ${{ secrets.DEPLOYER_PATH }}
DEPLOYER_USER: ${{ secrets.DEPLOYER_USER }}
DEPLOYER_ENV_PATH: ${{ secrets.DEPLOYER_ENV_PATH }}
NPM_BIN: ${{ secrets.NPM_BIN }}
run: vendor/bin/dep deploy