forked from sr-2020/nodejs-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.58 KB
/
ci.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
name: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: bahmutov/npm-install@v1.1.0
- uses: mansagroup/nrwl-nx-action@v1.0.1
with:
targets: lint,build,test
affected: true
deploy_alex_frontend:
runs-on: ubuntu-latest
needs: [test]
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: bahmutov/npm-install@v1.1.0
- run: npx nx build alex-frontend --prod
- uses: actions-hub/gcloud@318.0.0
env:
PROJECT_ID: alice-larp
APPLICATION_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
CLI: gsutil
with:
args: -h "Cache-Control:no-cache,max-age=0" cp dist/packages/alex-frontend/* gs://alex-frontend.aerem.in
deploy_sr2020_admin_ui:
runs-on: ubuntu-latest
needs: [test]
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- uses: bahmutov/npm-install@v1.1.0
- run: npx nx build sr2020-admin-ui --prod
- uses: actions-hub/gcloud@318.0.0
env:
PROJECT_ID: alice-larp
APPLICATION_CREDENTIALS: ${{ secrets.GCP_CREDENTIALS }}
CLI: gsutil
with:
args: -h "Cache-Control:no-cache,max-age=0" cp dist/packages/sr2020-admin-ui/* gs://sr2020-admin-ui.aerem.in