Skip to content

Map channel/conversation message while loading channel + conversation… #1081

Map channel/conversation message while loading channel + conversation…

Map channel/conversation message while loading channel + conversation… #1081

Workflow file for this run

name: Deploy Development
on:
push:
branches:
- main
- 'hotfix/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
jobs:
validate:
runs-on: ubuntu-latest
env:
REACT_APP_INFURA_URL: ${{secrets.INFURA_URL}}
steps:
- uses: actions/checkout@v2
- name: Common Setup
uses: ./.github/actions/common
- run: echo '//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}' >> .npmrc
- run: npm install
- run: npm run lint
- run: npx tsc
- run: npm run test
deploy:
needs: validate
runs-on: ubuntu-latest
environment: development
env:
REACT_APP_INFURA_URL: ${{secrets.INFURA_URL}}
REACT_APP_ROOT_DOMAIN_ID: ${{secrets.ROOT_DOMAIN_ID}}
REACT_APP_DEFAULT_ZNS_DOMAIN: ${{secrets.DEFAULT_ZNS_DOMAIN}}
REACT_APP_DEFAULT_APP: ${{secrets.DEFAULT_APP}}
REACT_APP_IPFS_BASE_URL: ${{secrets.IPFS_BASE_URL}}
REACT_APP_FORTMATIC_API_KEY: ${{secrets.FORTMATIC_API_KEY}}
REACT_APP_PORTIS_DAPP_ID: ${{secrets.PORTIS_DAPP_ID}}
REACT_APP_INFURA_ID: ${{secrets.INFURA_ID}}
REACT_APP_CLOUDINARY_PREFIX: ${{secrets.CLOUDINARY_PREFIX}}
REACT_APP_CLOUDINARY_CLOUD_NAME: ${{secrets.CLOUDINARY_CLOUD_NAME}}
REACT_APP_ETH_CHAIN: ${{secrets.ETH_CHAIN}}
REACT_APP_VERSION: ${{secrets.APP_VERSION}}
REACT_APP_ZERO_API_URL: ${{secrets.ZERO_API_URL}}
REACT_APP_SENTRY_DSN: ${{secrets.SENTRY_DSN}}
REACT_APP_WEB3_AUTHENTICATE_MESSAGE: ${{secrets.WEB3_AUTHENTICATE_MESSAGE}}
REACT_APP_SENDBIRD_APP_ID: ${{secrets.SENDBIRD_APP_ID}}
REACT_APP_INVITE_CODE_DEJAVU: ${{secrets.INVITE_CODE_DEJAVU}}
REACT_APP_GIPHY_SDK_KEY: ${{secrets.GIPHY_SDK_KEY}}
REACT_APP_PUSHER_KEY: ${{secrets.PUSHER_KEY}}
REACT_APP_PUSHER_CLUSTER: ${{secrets.PUSHER_CLUSTER}}
REACT_APP_MESSENGER_INVITE_PATH: ${{vars.MESSENGER_INVITE_PATH}}
REACT_APP_ASSETS_PATH: ${{vars.ASSETS_PATH}}
REACT_APP_ANDROID_STORE_PATH: ${{vars.ANDROID_STORE_PATH}}
REACT_APP_MATRIX_HOME_SERVER_URL: ${{vars.MATRIX_HOME_SERVER_URL}}
steps:
- uses: actions/checkout@v2
- name: Common Setup
uses: ./.github/actions/common
- run: echo '//npm.pkg.github.com/:_authToken=${{secrets.GITHUB_TOKEN}}' >> .npmrc
- run: npm install
- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main
- name: Build project
run: REACT_APP_VERSION=${{steps.package-version.outputs.current-version}} npm run build
- run: npm install -g netlify-cli
- name: Deploy to netlify
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
run: netlify deploy --dir=build --prod
- name: Create Sentry release
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ secrets.SENTRY_ORG }}
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }}
with:
environment: development