-
Notifications
You must be signed in to change notification settings - Fork 1
120 lines (120 loc) · 4.06 KB
/
main.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
name: PROD - Build myclub App and Deploy on Firebase Hosting
on:
push:
branches:
- master
jobs:
build_default:
name: Build & Deploy Default Unihockey App
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Config Node Version because of npm login issues.
uses: actions/setup-node@master
with:
node-version: 16
- name: Install Dependencies
run: |
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}"
npm ci
- name: Build (Default Unihockey)
run: npm run build:prod
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:app-unihockey
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
build_kadetten:
needs: build_default
name: Build & Deploy Kadetten Unihockey App
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Config Node Version because of npm login issues.
uses: actions/setup-node@master
with:
node-version: 16
- name: Install Dependencies
run: |
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}"
npm ci
- name: Build app-kadetten-unihockey
run: npm run build:app-kadetten-unihockey
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:app-kadetten-unihockey
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
build_uhc_winu:
needs: [build_default]
name: Build & Deploy UHC Winterthur United App
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Config Node Version because of npm login issues.
uses: actions/setup-node@master
with:
node-version: 16
- name: Install Dependencies
run: |
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}"
npm ci
- name: Build app-uhc-win-u
run: npm run build:app-uhc-win-u
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:app-uhc-win-u
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
build_stv_spreitenbach:
needs: [build_default]
name: Build & Deploy STV Spreitenbach App
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Config Node Version because of npm login issues.
uses: actions/setup-node@master
with:
node-version: 16
- name: Install Dependencies
run: |
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}"
npm ci
- name: Build app-stv-spreitenbach
run: npm run build:app-stv-spreitenbach
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:app-stv-spreitenbach
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
build_vbc_schaffhausen:
needs: [build_default]
name: Build & Deploy VBC Schaffhausen App
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Config Node Version because of npm login issues.
uses: actions/setup-node@master
with:
node-version: 16
- name: Install Dependencies
run: |
npm config set '//npm.fontawesome.com/:_authToken' "${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}"
npm ci
- name: Build app-vbc-schaffhausen
run: npm run build:app-vbc-schaffhausen
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting:app-vbc-schaffhausen
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}