-
-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (38 loc) · 1.1 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
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI Deploy
on:
release:
types:
- published
jobs:
call-tests:
uses: './.github/workflows/test.yml'
secrets: inherit
deploy:
needs: call-tests
name: Deploy to Heroku
runs-on: ubuntu-latest
steps:
- name: 📡 Checkout
uses: actions/checkout@v3
- name: ⚙️ Setup NodeJS 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: 🔧 Install Dependencies
run: npm ci
# - name: 🧱 Build
# run: |
# heroku git:remote -a ${{ secrets.HEROKU_STAGING_APP_NAME }}
# git push heroku master
- name: 🏷️ Register Slash Commands
run: npm run register
env:
NODE_ENV: production
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
BOT_GUILD_ID: ${{ secrets.BOT_GUILD_ID }}
BOT_ID: ${{ secrets.BOT_ID }}
- name: 🚀 Deploy
run: heroku pipelines:promote -a ${{ secrets.HEROKU_STAGING_APP_NAME }}
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}