-
-
Notifications
You must be signed in to change notification settings - Fork 26
62 lines (58 loc) · 1.77 KB
/
deploy-dev.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Build and Deploy Web - DEV
on:
push:
branches:
- master
paths-ignore:
- packages/functions/**
- packages/app/**
env:
FB_PROJECT: coh2-ladders-prod
FB_HOSTING: hosting:coh2-ladders-dev
jobs:
build-deploy-web:
name: Deploy Web Dev
environment:
name: dev
url: https://coh2-ladders-dev.web.app/
runs-on: ubuntu-latest
concurrency:
group: deploy-dev-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20.x"
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules-v2
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Install Deps
run: yarn --prefer-offline --frozen-lockfile install
- name: Fix the bug ISSUE 1078
run: yarn run "react-spring-issue-1078"
- name: Build the app
run: |
export NODE_OPTIONS=--max_old_space_size=4096
CI=false yarn web build
- name: Deploy to Firebase
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_COH2_LADDERS_PROD }}"
target: coh2-ladders-dev
channelId: live
projectId: coh2-ladders-prod