Skip to content

Merge pull request #740 from subquery/feat/improve #434

Merge pull request #740 from subquery/feat/improve

Merge pull request #740 from subquery/feat/improve #434

Workflow file for this run

name: Mainnet-Dev
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ vars.AWS_ACCESS_KEY_ID_DEV }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }}
VITE_SENTRY_DSN: ${{ vars.DEV_SENTRY_DSN }}
NODE_OPTIONS: --max-old-space-size=32768
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 18
- run: yarn
- name: Build
# Disable CI flag so linter warnings aren't treaded as errors
run: CI=false yarn build:dev
- name: Deploy Dev
uses: reggionick/s3-deploy@v3
with:
folder: dist
bucket: dev.thechaindata.com
bucket-region: ap-southeast-2
invalidation: /*
dist-id: ${{ secrets.CLOUDFRONT_ID_KEPLER_DEV }}
delete-removed: false
no-cache: true
private: true