Skip to content

fix: do not show note about free plan if not on free plan #1313

fix: do not show note about free plan if not on free plan

fix: do not show note about free plan if not on free plan #1313

Workflow file for this run

name: Build and Deploy to Development
on:
push:
branches:
- develop
- fix/billing-improvements
jobs:
build:
name: build-dev
environment: telosTestNet
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '16.x'
- run: yarn global add @vue/cli@latest
- run: yarn install
- run: mv public/chain-manifests-dev.json public/chain-manifests.json
- run: mv public/app-manifest-dev.json public/app-manifest.json
- run: yarn build
env:
APP_NAME: 'Hypha DHO - Test'
NETWORK_CHAIN_ID: '1eaa0824707c8c16bd25145493bf062aecddfeb56c736f6ba6397f3195f33c9f'
DAO_CONTRACT: 'mtdhoxhyphaa'
HYPHA_CONTRACT: 'mtrwardhypha'
ACCOUNT_API_URL: 'https://opqeierg9e.execute-api.us-east-1.amazonaws.com/dev'
ACCOUNT_API_KEY: ${{ secrets.DEV_ACCOUNT_API_KEY }}
BLOCKCHAIN_EXPLORER: 'https://telos-test.bloks.io'
BLOCKCHAIN_EXPLORER_BTC: 'https://www.blockchain.com/btc/tx/'
BLOCKCHAIN_EXPLORER_ETH: 'https://etherscan.io/tx/'
BLOCKCHAIN_EXPLORER_EOS: 'https://bloks.io/transaction/'
PPP_ENV: 'test'
SENTRY_DSN: ${{ vars.SENTRY_DSN }}
DGRAPH_URL: 'https://alpha-test.tekit.io/'
BLOCKCHAIN_ENDPOINTS: ${{ vars.BLOCKCHAIN_ENDPOINTS }}
TLOSTO_SEEDS: 'tlosto.seeds'
SUPPLY_CONTRACT: 'mtvoicehypha'
GRAPHQL_URI: 'https://alpha-stts.tekit.io/graphql'
ELASTIC_SEARCH_URL: 'https://hypha.es.eu-west-1.aws.found.io:9243/dho-testnet-documents/_search'
ELASTIC_SEARCH_API_KEY: ${{ secrets.DEV_ELASTIC_SEARCH_API_KEY }}
IPFS_URL: 'ipfs.infura.io'
IPFS_PROJECT_ID: '2F5pWHIOMgHji1DeqUT0mGpvySz'
IPFS_PROJECT_SECRET: ${{ secrets.IPFS_PROJECT_SECRET }}
IPFS_GATEWAY: 'https://hypha.infura-ipfs.io/ipfs/'
MULTISIG_CONTRACT: 'msig.hypha'
HYPHA_TOKEN_SALES_ENCODE_KEY: ${{ secrets.HYPHA_TOKEN_SALES_ENCODE_KEY }}
HYPHA_TOKEN_SALES_URL: 'https://dp9rw57cx84kg.cloudfront.net'
HYPHA_TOKEN_SALES_API_URL: 'http://api-tokensale.hypha.earth'
HYPHA_TOKEN_SALES_RPC_URL: 'https://mainnet.telos.net'
ROOT_DAO_ID: ${{vars.ROOT_DAO_ID}}
ROOT_DAO_SLUG: ${{vars.ROOT_DAO_SLUG}}
HEALTH_ENDPOINT: ${{ vars.HEALTH_ENDPOINT }}
CAPTCHA_PUBLIC_KEY: ${{ vars.CAPTCHA_PUBLIC_KEY }}
CAPTCHA_HOST: ${{ vars.CAPTCHA_HOST }}
CAPTCHA_NETWORK: ${{ vars.CAPTCHA_NETWORK }}
LOGIN_CONTRACT: ${{ vars.LOGIN_CONTRACT }}
JOIN_CONTRACT: ${{ vars.JOIN_CONTRACT }}
JOIN_URI: 'https://join.hypha.earth/'
DOWNLOAD_WALLET_LINK_IOS: ${{vars.DOWNLOAD_WALLET_LINK_IOS}} || http://itunes.apple.com/lb/app/id1659926348
DOWNLOAD_WALLET_LINK_ANDROID: ${{vars.DOWNLOAD_WALLET_LINK_ANDROID}} || http://play.google.com/store/apps/details?id=earth.hypha.wallet.hypha_wallet
- name: S3 sync
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: ${{ secrets.DEV_AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
SOURCE_DIR: 'dist/spa' # optional: defaults to entire repository
# Invalidate Cloudfront (this action)
- name: invalidate
uses: chetan/invalidate-cloudfront-action@master
env:
DISTRIBUTION: ${{ secrets.DEV_DISTRIBUTION_ID }}
PATHS: '/*'
AWS_REGION: 'us-east-1'
AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
# - name: S3 Sync and Invalidate Cloudfront Distribution
# uses: digital-scarcity/s3-sync-action@master
# with:
# args: --acl public-read --follow-symlinks
# env:
# AWS_S3_BUCKET: ${{ secrets.DEV_AWS_S3_BUCKET }}
# AWS_ACCESS_KEY_ID: ${{ secrets.DEV_AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.DEV_AWS_SECRET_ACCESS_KEY }}
# # AWS_REGION: 'us-east-1' # optional: defaults to us-east-1
# SOURCE_DIR: 'dist/spa' # optional: defaults to entire repository
# AWS_DISTRIBUTION_ID: ${{ secrets.DEV_DISTRIBUTION_ID }}