Skip to content

Commit

Permalink
Prod pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
ba1ciu committed Sep 21, 2023
1 parent 2a90f0d commit beadd6d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 9 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/frontend-marketplace-deploy-mainnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Deploy Marketplace Frontend - mainnet"

on:
workflow_dispatch:
push:
paths:
- 'frontend/marketplace/**'

jobs:
build:
name: Deploy Marketplace Frontend - mainnet
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Load .env file
uses: xom9ikk/dotenv@v2
with:
path: ./frontend/marketplace
mode: prod
- run: npm ci && npm run build
working-directory: ./frontend/marketplace
env:
VITE_API_ENDPOINT: ${{ env.VITE_API_ENDPOINT }}
VITE_HTTPS_FILE_URL: ${{ env.VITE_HTTPS_FILE_URL }}
VITE_MARKETPLACE_CONTRACT: ${{ env.VITE_MARKETPLACE_CONTRACT }}
VITE_CHAIN_ID: ${{ env.VITE_CHAIN_ID }}
VITE_CHAIN_NAME: ${{ env.VITE_CHAIN_NAME }}
VITE_RPC_ENDPOINT: ${{ env.VITE_RPC_ENDPOINT }}
VITE_REST_ENDPOINT: ${{ env.VITE_REST_ENDPOINT }}
VITE_DEFAULT_CREDIT_TYPE: ${{ env.VITE_DEFAULT_CREDIT_TYPE }}
VITE_ENVIRONMENT: ${{ env.VITE_ENVIRONMENT }}
VITE_GOOGLE_MAPS_API_KEY: ${{ secrets.GOOGLE_MAPS_API_KEY }}
VITE_REVISION_ID: ${{ github.sha }}
VITE_ROLLBAR_ACCESS_TOKEN: ${{ secrets.MARKETPLACE_ROLLBAR_ACCESS_TOKEN }}


- uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-args: '--prod'
vercel-org-id: ${{ secrets.VERCEL_ORG_ID}}
scope: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_MARKETPLACE_MAINNET}}
working-directory: ./frontend/marketplace/
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ jobs:
with:
path: ./frontend/marketplace
mode: test
load-mode: strict
- run: npm ci && npm run build
working-directory: ./frontend/marketplace
env:
Expand Down
16 changes: 8 additions & 8 deletions frontend/marketplace/.env.prod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
VITE_API_ENDPOINT="https://indexer.empowerchain.io:3000/"
VITE_HTTPS_FILE_URL="https://ipfs.empowerchain.io:8080/ipfs/"
VITE_MARKETPLACE_CONTRACT="empower14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sfg4umu"
VITE_CHAIN_ID="empowerchain-1"
VITE_CHAIN_NAME="Empowerchain"
VITE_RPC_ENDPOINT="https://rpc.empowerchain.io:26657"
VITE_REST_ENDPOINT="https://api.empowerchain.io:1317"
VITE_DEFAULT_CREDIT_TYPE="PCRD"
VITE_API_ENDPOINT=https://indexer.empowerchain.io:3000/
VITE_HTTPS_FILE_URL=https://ipfs.empowerchain.io:8080/ipfs/
VITE_MARKETPLACE_CONTRACT=empower14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9sfg4umu
VITE_CHAIN_ID=empowerchain-1
VITE_CHAIN_NAME=Empowerchain
VITE_RPC_ENDPOINT=https://rpc.empowerchain.io:26657
VITE_REST_ENDPOINT=https://api.empowerchain.io:1317
VITE_DEFAULT_CREDIT_TYPE=PCRD
VITE_ENVIRONMENT=mainnet

0 comments on commit beadd6d

Please sign in to comment.