-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (35 loc) · 1.07 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
name: Deploy Matrix Bot
on:
push:
branches:
- main # or the branch you want to trigger the deployment
jobs:
deploy:
runs-on: ubuntu-latest
environment: DeployBot
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
# - name: Obtain BOT-ACCESS-TOKEN
# id: get_bot_access_token
# run: node dist/bot-login.js
# - name: Set BOT_ACCESS_TOKEN as a secret
# run: echo "BOT_ACCESS_TOKEN=${{ env.BOT_ACCESS_TOKEN }}" >> $GITHUB_ENV
- name: Run Matrix Bot
run: node dist/basic-bot.js
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
BOT_HOMESERVER: ${{ secrets.BOT_HOMESERVER }}
BOT_USERNAME: ${{ secrets.BOT_USERNAME }}
BOT_PASSWORD: ${{ secrets.BOT_PASSWORD }}
BOT_STORE: ${{ secrets.BOT_STORE }}
BOT_CRYPT: ${{ secrets.BOT_CRYPT }}
BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}