-
Notifications
You must be signed in to change notification settings - Fork 56
45 lines (37 loc) · 1.15 KB
/
deploy.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
name: PROD Deployment
on:
release:
types: [published]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment: production
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: node_modules-${{ hashFiles('**/package-lock.json') }}
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: npm
- name: Install Dependencies
run: npm install
- name: Build
run: npm run generate
env:
MEILISEARCH_HOST: '${{ vars.MEILISEARCH_HOST }}'
MEILISEARCH_INDEX: '${{ vars.MEILISEARCH_INDEX }}'
MEILISEARCH_SEARCH_API_KEY: '${{ secrets.MEILISEARCH_SEARCH_API_KEY }}'
- name: Deploy
uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_ARCHWAY_NETWORK }}'
channelId: live
projectId: archway-network
target: 'archway-docs'