Skip to content

Commit

Permalink
feat: improve deployments and documentation (#3301)
Browse files Browse the repository at this point in the history
* feat: simplify envs, cleanup them and improve readme

* docs: improve links section

* docs: improve readme and add REACT_APP_ORDER_BOOK_URLS (#3173)

* docs: improve readme and add REACT_APP_ORDER_BOOK_URLS

* docs: improve documentation

Co-authored-by: Felix Leupold <[email protected]>

* docs: improve ini

* docs: fix name

* docs: simplify

---------

Co-authored-by: Felix Leupold <[email protected]>

* chore: delete amplitude and a bunch of unneded envs

* fix: fix issue with env name in error

* fix: fix env

* feat: reuse .env for all projects and simplify envs further

* feat: improve script names

* docs: add build step for configurator

* feat: deploy cowswap to build/cowswap

* docs: remove badge

* feat: change the base for widget configurator, run it in the root

* chore: delete cosmos comment

* chore: fix tests

* chore: fix checkEnvironment

---------

Co-authored-by: Felix Leupold <[email protected]>
Co-authored-by: Alexandr Kazachenko <[email protected]>
  • Loading branch information
3 people authored Oct 31, 2023
1 parent 0abd162 commit fb24d41
Show file tree
Hide file tree
Showing 34 changed files with 308 additions and 568 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,12 @@ on:
types: [opened, synchronize]

env:
REPO_NAME_SLUG: cowswap
PR_NUMBER: ${{ github.event.number }}
NODE_VERSION: lts/gallium
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
REACT_APP_PINATA_API_KEY: ${{ secrets.REACT_APP_PINATA_API_KEY }}
REACT_APP_PINATA_SECRET_API_KEY: ${{ secrets.REACT_APP_PINATA_SECRET_API_KEY }}
REACT_APP_SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
REACT_APP_BLOCKNATIVE_API_KEY: ${{ secrets.REACT_APP_BLOCKNATIVE_API_KEY }}
REACT_APP_GOOGLE_ANALYTICS_ID: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }}
REACT_APP_AMPLITUDE_KEY: ${{ secrets.REACT_APP_AMPLITUDE_KEY }}
REACT_APP_BLOCKNATIVE_API_KEY: ${{ secrets.REACT_APP_BLOCKNATIVE_API_KEY }}

jobs:
setup:
Expand Down Expand Up @@ -89,7 +85,6 @@ jobs:
- name: Unit Test
run: yarn test


# - name: Coveralls
# uses: coverallsapp/[email protected]
# with:
Expand Down Expand Up @@ -187,8 +182,6 @@ jobs:
# cypress-custom/videos
# cypress-custom/screenshots



# Open tmate ssh connection on failure for debugging
# Uncomment when needed and push upstream
# - name: Setup tmate session
Expand Down
13 changes: 4 additions & 9 deletions .github/workflows/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on:
tags: [v*]

env:
REPO_NAME_SLUG: cowswap
REACT_APP_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
REACT_APP_PINATA_API_KEY: ${{ secrets.REACT_APP_PINATA_API_KEY }}
REACT_APP_PINATA_SECRET_API_KEY: ${{ secrets.REACT_APP_PINATA_SECRET_API_KEY }}
REACT_APP_GOOGLE_ANALYTICS_ID: ${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }}
REACT_APP_BLOCKNATIVE_API_KEY: ${{ secrets.REACT_APP_BLOCKNATIVE_API_KEY }}
# Duplicated keys as these are required by `ipfs-deploy`
IPFS_DEPLOY_PINATA__API_KEY: ${{ secrets.REACT_APP_PINATA_API_KEY }}
IPFS_DEPLOY_PINATA__SECRET_API_KEY: ${{ secrets.REACT_APP_PINATA_SECRET_API_KEY }}
Expand Down Expand Up @@ -54,13 +56,6 @@ jobs:

- name: Build Web Apps
run: yarn ipfs:build
env:
REACT_APP_CHAIN_ID: 1
REACT_APP_NETWORK_URL_XDAI: https://rpc.gnosischain.com/
REACT_APP_ADDITIONAL_SERVICES_API_URL_XDAI: https://ido-api-xdai.gnosis.io/
REACT_APP_NETWORK_URL_MAINNET: https://mainnet.infura.io/v3/${{ secrets.INFURA_PROJECT_KEY }}
REACT_APP_ADDITIONAL_SERVICES_API_URL_MAINNET: https://ido-api-mainnet.gnosis.io/
REACT_APP_BLOCKNATIVE_API_KEY: ${{ secrets.REACT_APP_BLOCKNATIVE_API_KEY }}

- name: "Deploy to IPFS with infura"
- name: 'Deploy to IPFS with infura'
run: yarn ipfs:publish
67 changes: 0 additions & 67 deletions .github/workflows/pr_comments.yml

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/vercel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ jobs:
- name: Build Project Artifacts
run: >
REACT_APP_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
REACT_APP_SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
REACT_APP_PINATA_API_KEY=${{ secrets.REACT_APP_PINATA_API_KEY }}
REACT_APP_PINATA_SECRET_API_KEY=${{ secrets.REACT_APP_PINATA_SECRET_API_KEY }}
REACT_APP_BLOCKNATIVE_API_KEY=${{ secrets.REACT_APP_BLOCKNATIVE_API_KEY }}
REACT_APP_GOOGLE_ANALYTICS_ID=${{ secrets.REACT_APP_GOOGLE_ANALYTICS_ID }}
REACT_APP_AMPLITUDE_KEY=${{ secrets.REACT_APP_AMPLITUDE_KEY }}
REACT_APP_LAUNCH_DARKLY_KEY=${{ secrets.REACT_APP_LAUNCH_DARKLY_KEY }}
REACT_APP_WALLET_CONNECT_V1_BRIDGE=${{ secrets.REACT_APP_WALLET_CONNECT_V1_BRIDGE }}
REACT_APP_INFURA_KEY=${{ secrets.REACT_APP_INFURA_KEY }}
REACT_APP_NETWORK_URL_1=${{ secrets.REACT_APP_NETWORK_URL_1 }}
REACT_APP_NETWORK_URL_100=${{ secrets.REACT_APP_NETWORK_URL_100 }}
REACT_APP_NETWORK_URL_5=${{ secrets.REACT_APP_NETWORK_URL_5 }}
Expand Down
Loading

0 comments on commit fb24d41

Please sign in to comment.