forked from vganshin/aidbox-ui-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 953 Bytes
/
main.yaml
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
name: Build & Deploy
on:
push:
branches:
- "main"
workflow_dispatch:
jobs:
test-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
- run: npm ci
- run: |
node sync.mjs
env:
AIDBOX_URL: ${{ vars.AIDBOX_STAGE_URL }}
AIDBOX_USER: ${{ vars.AIDBOX_STAGE_USERNAME }}
AIDBOX_PASSWORD: ${{ vars.AIDBOX_STAGE_PASSWORD }}
- run: npm run test
env:
AIDBOX_URL: ${{ vars.AIDBOX_STAGE_URL }}
AIDBOX_USER: ${{ vars.AIDBOX_STAGE_USERNAME }}
AIDBOX_PASSWORD: ${{ vars.AIDBOX_STAGE_PASSWORD }}
- run: node sync.mjs
env:
AIDBOX_URL: ${{ vars.AIDBOX_PROD_URL }}
AIDBOX_USER: ${{ vars.AIDBOX_PROD_USERNAME }}
AIDBOX_PASSWORD: ${{ vars.AIDBOX_PROD_PASSWORD }}