generated from pokt-network/repo-template
-
Notifications
You must be signed in to change notification settings - Fork 14
50 lines (48 loc) · 1.64 KB
/
production.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: Production Deployment
on:
push:
branches: [master]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.18.0]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: NPM install
run: npm install
- name: Production build
run: npm run build
env:
VITE_CHAIN_ID: "mainnet"
VITE_GATEWAY_BASE_URL: "https://pocket-rpc.liquify.com/"
VITE_TX_FEE: "10000"
VITE_MAX_TRANSACTION_LIST_COUNT: "5000"
VITE_MIN_TRANSACTION_LIST_COUNT: "200"
VITE_BLOCK_EXPLORER_BASE_URL: "https://poktscan.com"
VITE_BUY_POKT_BASE_URL: "https://forum.pokt.network/t/secondary-markets-for-pokt/629"
VITE_POKT_USD_VALUE: ${{ secrets.POKT_USD_MARKET_PRICE }}
VITE_HTTP_TIMEOUT: 0
VITE_HTTP_HEADERS: '{"Content-Type": "application/json"}'
VITE_USE_LEGACY_CODEC: "false"
- name: Deploy to GCS
uses: actions-hub/gcloud@master
env:
PROJECT_ID: portal-gb-prod
APPLICATION_CREDENTIALS: ${{ secrets.GCP_SA_KEY }}
with:
args: -m rsync -r build gs://pocket-wallet-prod-frontend
cli: gsutil
- name: Clear Cloud CDN Cache
uses: actions-hub/gcloud@master
env:
PROJECT_ID: portal-gb-prod
APPLICATION_CREDENTIALS: ${{ secrets.GCP_SA_KEY }}
with:
args: compute url-maps invalidate-cdn-cache wallet-prod-url-map --path \"/*\"