-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (28 loc) · 936 Bytes
/
ci.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
name: Build and Deploy nopwd website
on:
push:
branches:
- main
jobs:
deploy-ci:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout Repository
uses: actions/checkout@main
- name: ⬇️ Installing dependencies
run: npm i
- name: ⬇️ Building nopwd website
run: npm run build
- name: 📥 Installing firebase command tool
run: sudo npm install -g firebase-tools
- name: 🤫 building glcoud credential.json
run: echo ${{ secrets.DEPLOYMENT_KEY }} | base64 --decode > ./credential.json
- name: 📦 deploy nopwd.rocks
run: |
firebase use --add nopwdio
firebase target:apply hosting rocks nopwd-rocks
firebase deploy --only hosting:rocks
env:
GOOGLE_APPLICATION_CREDENTIALS: ./credential.json
- name: 🤫 removing credential.json
run: rm ./credential.json