-
Notifications
You must be signed in to change notification settings - Fork 9
57 lines (49 loc) · 1.73 KB
/
build-host.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
48
49
50
51
52
53
54
55
56
57
name: Build host with ember
on:
workflow_call:
inputs:
environment:
required: true
type: string
jobs:
build:
name: Build
runs-on: ubuntu-latest
concurrency:
group: build-host-${{ inputs.environment }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: Init
uses: ./.github/actions/init
- name: Set up env
env:
INPUT_ENVIRONMENT: ${{ inputs.environment }}
run: |
if [ "$INPUT_ENVIRONMENT" = "production" ]; then
echo "RESOLVED_BASE_REALM_URL=https://app.boxel.ai/base/" >> $GITHUB_ENV
echo "MATRIX_URL=https://matrix.boxel.ai" >> $GITHUB_ENV
echo "MATRIX_SERVER_NAME=boxel.ai" >> $GITHUB_ENV
echo "EXPERIMENTAL_AI_ENABLED=true" >> $GITHUB_ENV
elif [ "$INPUT_ENVIRONMENT" = "staging" ]; then
echo "RESOLVED_BASE_REALM_URL=https://realms-staging.stack.cards/base/" >> $GITHUB_ENV
echo "MATRIX_URL=https://matrix-staging.stack.cards" >> $GITHUB_ENV
echo "MATRIX_SERVER_NAME=stack.cards" >> $GITHUB_ENV
echo "EXPERIMENTAL_AI_ENABLED=true" >> $GITHUB_ENV
else
echo "unrecognized environment"
exit 1;
fi
- name: Build boxel-ui
run: pnpm build
working-directory: packages/boxel-ui/addon
- name: Build boxel-icons
run: pnpm build
working-directory: packages/boxel-icons
- name: Build host
run: pnpm deploy:boxel-host build-only --verbose
- name: Save dist
uses: actions/upload-artifact@v4
with:
name: host-dist
path: packages/host/tmp/deploy-dist