-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 1.11 KB
/
deploy-slim.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
name: slim/deploy
on:
workflow_dispatch:
jobs:
build_and_deploy:
runs-on: ubuntu-latest
container:
image: node:20
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Clone and install SLIM dependencies
run: |
git clone https://github.com/ImagingDataCommons/slim.git
cd slim
yarn install --frozen-lockfile
- name: Build slim
run: |
cd slim
wget -O ./firebase.json "${{ vars.SLIM_FIREBASE_JSON_URL }}"
wget -O ./public/config/test.js "${{ vars.SLIM_CONFIG_JS_URL }}"
REACT_APP_CONFIG=test PUBLIC_URL=/ yarn build
- name: Deploy to Firebase
uses: FirebaseExtended/[email protected]
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}"
expires: 5d
projectId: "${{ vars.FIREBASE_PROJECT_ID }}"
entryPoint: ./slim
channelId: live
# channelId: # 'pr-${{ github.event.number }}-${{ github.event.pull_request.head.ref }}'