Skip to content

Commit 208e91b

Browse files
authored
Merge pull request #3 from dextel2/develop
add github workflows
2 parents 16be2b4 + e1dd9a8 commit 208e91b

2 files changed

Lines changed: 33 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: "18"
20+
cache: "npm"
21+
22+
- name: Install dependencies
23+
run: npm ci
24+
25+
- name: Create .env file
26+
run: |
27+
echo "TELEGRAM_BOT_TOKEN=${{ secrets.TELEGRAM_BOT_TOKEN }}" >> .env
28+
echo "TOGETHER_AI_API_KEY=${{ secrets.TOGETHER_AI_API_KEY }}" >> .env
29+
30+
- name: Build and test
31+
run: npm run build

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)