Skip to content

Commit 2ef10c8

Browse files
committed
Yaml Issue
1 parent 18f0352 commit 2ef10c8

File tree

1 file changed

+22
-19
lines changed

1 file changed

+22
-19
lines changed

.github/workflows/main.yml

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name : Firebase Deployment YAML
1+
name : Firebase Deployment
2+
23

34
on:
45
push:
@@ -7,28 +8,30 @@ on:
78

89
jobs:
910
deploy:
10-
name: Build and Deployment
11-
runs-on: ubuntu-latest
11+
name: Build & Deployment
12+
runs-on : ubuntu-latest
1213

1314
steps:
14-
- name : Get the Source Code
15-
uses : actions/checkout@v2
16-
- name : Install Node
17-
uses : actions/setup-node@v2
18-
with :
19-
node-version: '12'
20-
- name : Install Node Packages
21-
run : npm i
15+
- name : get the source code
16+
uses: actions/checkout@v2
17+
18+
- name : install node
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '12'
2222

23-
- name : Build
24-
run : npm run build
25-
env :
26-
CI : false
23+
- name : install node packages
24+
run: npm i
2725

26+
- name: Build
27+
run: npm run build
28+
env:
29+
CI: false
30+
2831
- name : Deploy to Firebase
29-
uses : w9jds/firebase-action@master
30-
with :
31-
args : deploy --only hosting
32+
uses: w9jds/firebase-action@master
33+
with:
34+
args: deploy --only hosting
3235
env:
3336
FIREBASE_TOKEN: ${{secrets.FIREBASE_TOKEN}}
34-
REACT_APP_YT_API_KEY: ${{secrets.REACT_APP_YT_API_KEY}}
37+
REACT_APP_YT_API_KEY: ${{secrets.REACT_APP_YT_API_KEY}}

0 commit comments

Comments
 (0)