Merge pull request #480 from pokt-network/fix-the-base-url #81
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \"/*\" |