-
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (30 loc) · 953 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy to production
on:
release:
types: [published]
workflow_dispatch:
concurrency: production_environment
jobs:
deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: csv, mbstring, bcmath, xml, gd
- name: Install dependencies
run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist
- name: Deploy with deployer
uses: deployphp/action@v1
env:
DOT_ENV: ${{ secrets.DOT_ENV }}
REMOTE_USER: ${{ secrets.REMOTE_USER }}
HOSTNAME: ${{ secrets.HOSTNAME }}
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}
with:
dep: deploy
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
known-hosts: ${{ secrets.SSH_KNOWN_HOSTS }}