-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (43 loc) · 1.43 KB
/
firebase-hosting-pull-request.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
name: Deploy to Firebase Hosting on PR
on: pull_request
jobs:
build_and_preview:
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: [14.x]
os: [ubuntu-latest]
language: [javascript]
steps:
- name: Set up Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}
- name: Downloads Checkouts...
uses: actions/checkout@v2
- name: Create Firebase Configuration for Neon K.I.D
env:
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }}
run: |
echo $FIREBASE_CONFIG > src/components/Server/firebase/config.json
- name: Initialize CodeQL..
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
- name: N.K Portpolio Build...
run: |
npm install
npm run build:css
npm run build
- name: Deploy Preview Channel
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_NK_PROJECT_8EC03 }}'
expires: 7d
projectId: nk-project-8ec03
channelId: preview