forked from AeonOrg/Aeon-MLTB
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.56 KB
/
deploy.yml
File metadata and controls
54 lines (52 loc) · 1.56 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Deploy to Heroku
on:
workflow_dispatch:
inputs:
HEROKU_APP_NAME:
description: "Heroku App name"
required: true
HEROKU_API_KEY:
description: "Heroku API key"
required: true
HEROKU_EMAIL:
description: "Heroku email address"
required: true
BOT_TOKEN:
description: "Telegram bot token"
required: true
OWNER_ID:
description: "Owner's telegram ID"
required: true
DATABASE_URL:
description: "Database URL from MongoDB"
required: true
TELEGRAM_API:
description: "Telegram API ID from https://my.telegram.org/"
required: true
TELEGRAM_HASH:
description: "Telegram HASH from https://my.telegram.org/"
required: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout deploy branch
uses: actions/checkout@v2
with:
ref: "refs/heads/deploy"
- name: Deploy to Heroku
uses: 5hojib/heroku-deploy-action@v1.0.1
with:
heroku_api_key: ${{inputs.HEROKU_API_KEY}}
heroku_app_name: ${{inputs.HEROKU_APP_NAME}}
heroku_email: ${{inputs.HEROKU_EMAIL}}
usedocker: true
docker_heroku_process_type: web
stack: "container"
region: "eu"
env:
HD_OWNER_ID: ${{inputs.OWNER_ID}}
HD_TELEGRAM_API: ${{inputs.TELEGRAM_API}}
HD_TELEGRAM_HASH: ${{inputs.TELEGRAM_HASH}}
HD_DATABASE_URL: ${{inputs.DATABASE_URL}}
HD_BOT_TOKEN: ${{inputs.BOT_TOKEN}}