-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 1.05 KB
/
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
name: Deploy
on:
release:
types:
- released
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
extensions: curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
- name: Deploy
uses: deployphp/action@v1
env:
TELEGRAM_DRAGON_BOT_TOKEN: ${{ secrets.TELEGRAM_DRAGON_BOT_TOKEN }}
TELEGRAM_DRAGON_BOT_CHAT_ID: ${{ secrets.TELEGRAM_DRAGON_BOT_CHAT_ID }}
DEPLOY_IP: ${{ secrets.DEPLOY_IP }}
DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }}
with:
private-key: ${{ secrets.DEPLOY_PRIVATE_KEY }}
known-hosts: ${{ secrets.DEPLOY_KNOWN_HOSTS }}
dep: deploy production --revision=${{ github.sha }}
deployer-version: 7.3.0