safe-react/scripts/github/deploy_release.sh

18 lines
763 B
Bash
Raw Normal View History

#!/bin/bash
# Only:
# - Tagged commits
# - Security env variables are available.
Release v3.1.0 (#1953) * Added help center article link to step 2 * Removed deprecated wallets (#1922) * Bump new onboardjs version * Fix notification re-appears (#1925) * (Fix) - #1775 Nonce of cancel transaction calculation (#1886) * Fix how the nonce of the cancel transaction is calculated * make use useState to handle nonce state * fix to prevent "0" being treated as undefined * (Fix) - #1707 Cannot use larger numbers in contract interaction (#1863) * Remove withStyles from TextAreaField and fix name * Remove any type in handleSubmit from contractInteraction review * Parses the bignumber value to string * Added link to docs for custom app modal * Fix styles to match design * Fix nonce 0 check (#1941) * Use tooltip from SRC (#1888) * Upgrade safe-react-components to latest version * fix New Transaction button * Increase the date/time tooltip size * Feature: Add Mushrooms finance app (#1893) * add mushrooms finance app * Migrate to GitHub actions (#1924) * Add Github action for each network environment * Move deploy scripts to new folder * Adapt deploy scripts to Github actions * Run coveralls only if tests succeed * Upload sentry source map * Add Production flag for tagged builds * Use coveralls Github Action * Add debug steps to all networks for first release test * Avoid to remove the current loaded safe data if the batch request fail (#1847) * Fix gas estimation (#1944) * Fix gas estimation for threshold > 4 * Update gas estimation to be more precise * Add threshold gas costs on transaction creation estimation Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm> * update ipfs hash for wc app (#1954) * Update endpoint to use new name (#1955) * (Fix) Transactions infinite scroll (#1931) * install `react-intersection-observer` dependency - also, remove `react-infinite-scroll-component` * refactor `InfiniteScroll` to be used with `react-intersection-observer` * build an infinite scroll wrapper for transactions based on `InfiniteScroll` * recover `TxsInfiniteScrollContext` information to identify the last item in a list - a new component was created for History transactions: `HistoryTransactions` as a wrapper * refactor lists to use `TxsInfiniteScrollContext` and identify the last item in the list * allow to pass config to the InfiniteScroll component - also changed default bottom margin so the txs loading starts a bit earlier * fix memory consumption issue based on nft retrieval/update data * delay `lastItemId` set to next tick, to prevent multiple updates during the same render phase * Set triggerOnce to infinitescroll * Fix gas estimation (#1959) * Fix type of fetchSafeCollectibles (#1971) * Fix transaction list infinite loading (#1973) * Check transaction list before trying to assing guard element to infinite scroll in pending list (#1972) * Fix execute if collected signs is > to threshold (#1968) * Feature: Add lido finance app (#1960) * Add pooltogether safe app (#1946) * fix isExecute in useEstimateTransactionGas (#1981) * Set V3.1.0 Co-authored-by: Mati Dastugue <mdastugu@amazon.com> Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com> Co-authored-by: nicolas <nicosampler@users.noreply.github.com> Co-authored-by: Agustin Pane <agustin.pane@gmail.com> Co-authored-by: Fernando <fernando.greco@gmail.com> Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com> Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com> Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
2021-03-03 09:17:40 +00:00
if [ -n "$VERSION_TAG" ] && [ -n "$AWS_ACCESS_KEY_ID" ]
then
# Only alphanumeric characters. Example v1.0.0 -> v100
Release v3.1.0 (#1953) * Added help center article link to step 2 * Removed deprecated wallets (#1922) * Bump new onboardjs version * Fix notification re-appears (#1925) * (Fix) - #1775 Nonce of cancel transaction calculation (#1886) * Fix how the nonce of the cancel transaction is calculated * make use useState to handle nonce state * fix to prevent "0" being treated as undefined * (Fix) - #1707 Cannot use larger numbers in contract interaction (#1863) * Remove withStyles from TextAreaField and fix name * Remove any type in handleSubmit from contractInteraction review * Parses the bignumber value to string * Added link to docs for custom app modal * Fix styles to match design * Fix nonce 0 check (#1941) * Use tooltip from SRC (#1888) * Upgrade safe-react-components to latest version * fix New Transaction button * Increase the date/time tooltip size * Feature: Add Mushrooms finance app (#1893) * add mushrooms finance app * Migrate to GitHub actions (#1924) * Add Github action for each network environment * Move deploy scripts to new folder * Adapt deploy scripts to Github actions * Run coveralls only if tests succeed * Upload sentry source map * Add Production flag for tagged builds * Use coveralls Github Action * Add debug steps to all networks for first release test * Avoid to remove the current loaded safe data if the batch request fail (#1847) * Fix gas estimation (#1944) * Fix gas estimation for threshold > 4 * Update gas estimation to be more precise * Add threshold gas costs on transaction creation estimation Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm> * update ipfs hash for wc app (#1954) * Update endpoint to use new name (#1955) * (Fix) Transactions infinite scroll (#1931) * install `react-intersection-observer` dependency - also, remove `react-infinite-scroll-component` * refactor `InfiniteScroll` to be used with `react-intersection-observer` * build an infinite scroll wrapper for transactions based on `InfiniteScroll` * recover `TxsInfiniteScrollContext` information to identify the last item in a list - a new component was created for History transactions: `HistoryTransactions` as a wrapper * refactor lists to use `TxsInfiniteScrollContext` and identify the last item in the list * allow to pass config to the InfiniteScroll component - also changed default bottom margin so the txs loading starts a bit earlier * fix memory consumption issue based on nft retrieval/update data * delay `lastItemId` set to next tick, to prevent multiple updates during the same render phase * Set triggerOnce to infinitescroll * Fix gas estimation (#1959) * Fix type of fetchSafeCollectibles (#1971) * Fix transaction list infinite loading (#1973) * Check transaction list before trying to assing guard element to infinite scroll in pending list (#1972) * Fix execute if collected signs is > to threshold (#1968) * Feature: Add lido finance app (#1960) * Add pooltogether safe app (#1946) * fix isExecute in useEstimateTransactionGas (#1981) * Set V3.1.0 Co-authored-by: Mati Dastugue <mdastugu@amazon.com> Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com> Co-authored-by: nicolas <nicosampler@users.noreply.github.com> Co-authored-by: Agustin Pane <agustin.pane@gmail.com> Co-authored-by: Fernando <fernando.greco@gmail.com> Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com> Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com> Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
2021-03-03 09:17:40 +00:00
VERSION_TAG_ALPHANUMERIC=$(echo $VERSION_TAG | sed 's/[^a-zA-Z0-9]//g')
Release v3.1.0 (#1953) * Added help center article link to step 2 * Removed deprecated wallets (#1922) * Bump new onboardjs version * Fix notification re-appears (#1925) * (Fix) - #1775 Nonce of cancel transaction calculation (#1886) * Fix how the nonce of the cancel transaction is calculated * make use useState to handle nonce state * fix to prevent "0" being treated as undefined * (Fix) - #1707 Cannot use larger numbers in contract interaction (#1863) * Remove withStyles from TextAreaField and fix name * Remove any type in handleSubmit from contractInteraction review * Parses the bignumber value to string * Added link to docs for custom app modal * Fix styles to match design * Fix nonce 0 check (#1941) * Use tooltip from SRC (#1888) * Upgrade safe-react-components to latest version * fix New Transaction button * Increase the date/time tooltip size * Feature: Add Mushrooms finance app (#1893) * add mushrooms finance app * Migrate to GitHub actions (#1924) * Add Github action for each network environment * Move deploy scripts to new folder * Adapt deploy scripts to Github actions * Run coveralls only if tests succeed * Upload sentry source map * Add Production flag for tagged builds * Use coveralls Github Action * Add debug steps to all networks for first release test * Avoid to remove the current loaded safe data if the batch request fail (#1847) * Fix gas estimation (#1944) * Fix gas estimation for threshold > 4 * Update gas estimation to be more precise * Add threshold gas costs on transaction creation estimation Co-authored-by: Daniel Sanchez <daniel.sanchez@gnosis.pm> * update ipfs hash for wc app (#1954) * Update endpoint to use new name (#1955) * (Fix) Transactions infinite scroll (#1931) * install `react-intersection-observer` dependency - also, remove `react-infinite-scroll-component` * refactor `InfiniteScroll` to be used with `react-intersection-observer` * build an infinite scroll wrapper for transactions based on `InfiniteScroll` * recover `TxsInfiniteScrollContext` information to identify the last item in a list - a new component was created for History transactions: `HistoryTransactions` as a wrapper * refactor lists to use `TxsInfiniteScrollContext` and identify the last item in the list * allow to pass config to the InfiniteScroll component - also changed default bottom margin so the txs loading starts a bit earlier * fix memory consumption issue based on nft retrieval/update data * delay `lastItemId` set to next tick, to prevent multiple updates during the same render phase * Set triggerOnce to infinitescroll * Fix gas estimation (#1959) * Fix type of fetchSafeCollectibles (#1971) * Fix transaction list infinite loading (#1973) * Check transaction list before trying to assing guard element to infinite scroll in pending list (#1972) * Fix execute if collected signs is > to threshold (#1968) * Feature: Add lido finance app (#1960) * Add pooltogether safe app (#1946) * fix isExecute in useEstimateTransactionGas (#1981) * Set V3.1.0 Co-authored-by: Mati Dastugue <mdastugu@amazon.com> Co-authored-by: Mati Dastugue <matias.dastugue@altoros.com> Co-authored-by: nicolas <nicosampler@users.noreply.github.com> Co-authored-by: Agustin Pane <agustin.pane@gmail.com> Co-authored-by: Fernando <fernando.greco@gmail.com> Co-authored-by: Agustín Longoni <agustin.longoni@altoros.com> Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com> Co-authored-by: nicosampler <nf.dominguez.87@gmail.com>
2021-03-03 09:17:40 +00:00
REVIEW_RELEASE_FOLDER="$REPO_NAME_ALPHANUMERIC/$VERSION_TAG_ALPHANUMERIC"
# Deploy safe-team release project
aws s3 sync build s3://${REVIEW_BUCKET_NAME}/${REVIEW_RELEASE_FOLDER}/app --delete --exclude "*.html" --exclude "/page-data" --cache-control max-age=31536000,public
Rebase master into development (#647) * v1.7.3 (#611) * Fix #597: USD value not load (#609) * Converts all the addresses to checksum values * Fix for empty address * fix the order of transactions, change updateSafe to upgradeSafe to avoid naming confusion with the updateSafe action (#610) * Fix #596: Notification when safe is already updated (#599) * Fix notification of update if the safe is already updated * Makes the notification clickable Displays the notification for owners only * Identify upgrade tx * Add red badge to Settings tab * Fixs Padding Removes the red dot if the user is not an owner Co-authored-by: Fernando <fernando.greco@gmail.com> Co-authored-by: Fernando <fernando.greco@gmail.com> Co-authored-by: Agustin Pane <agustin.pane@gmail.com> * Update package.json (#612) * Add public url to prod webpack config (#615) * add public url to prod webpack config * modify travis/webpack config to add public url * add slash * cherry pick new travis yml merge commit (#620) * V1.7.5 release (#641) * use hash history * update package json * BUG: App index.html cached on production (#642) * remove caching for webapp index.html * keep --delete flag * Fix #596: Notification when safe is already updated (#599) * Fix notification of update if the safe is already updated * Makes the notification clickable Displays the notification for owners only * Identify upgrade tx * Add red badge to Settings tab * Fixs Padding Removes the red dot if the user is not an owner Co-authored-by: Fernando <fernando.greco@gmail.com> * Bug: #482 - Address book Custom transactions Recipient validation (#577) * (fix) text input bottom border * Fix #482 input * Merge branch 'development' of https://github.com/gnosis/safe-react into fix/#482-address-book # Conflicts: # src/components/forms/TextField/index.jsx # src/routes/safe/components/Balances/SendModal/screens/AddressBookInput/index.jsx # src/routes/safe/components/Balances/SendModal/screens/SendFunds/TokenSelectField/index.jsx # src/routes/safe/components/Balances/SendModal/screens/SendFunds/index.jsx # yarn.lock * Fix custom tx addresses filtering * Merge branch 'development' of https://github.com/gnosis/safe-react into fix/#482-address-book # Conflicts: # yarn.lock * Remove console logs Fixed prettier issues * Remove unnecessary template string * Fix `tokenAddress` string conversion * Use `secondaryBackground` value Co-authored-by: Gabriel Rodríguez Alsina <gabitoesmiapodo@users.noreply.github.com> Co-authored-by: Fernando <fernando.greco@gmail.com> * (feature) Adding origin for Apps Transactions (#576) * Adding origin field when creates a TX * refactor: replace list of arg by object in getApprovalTransaction and getExecutionTransaction function * minor changes * Allow execute if threshold is 1 for the first tx - Related to issue #563 - `lastTx` is required due to #489 * - Normalizing logic between createTransaction and processTransaction - Moving shared function to a new file * Refactor `doesTxNeedApproval` back to the `isExecution`-related meaning * Rename function and variable names * Add tests for `getNewTxNonce` and `shouldExecuteTransaction` functions * Pass `safeInstance` instead of `safeAddress` to `getNewTxNonce` * Update Tests - remove mocked `getGnosisSafeInstanceAt` - pass `safeInstance` instead of `safeAddress` to `getNewTxNonce` Co-authored-by: Fernando <fernando.greco@gmail.com> * (Feature) Add checks into CI (#594) * Repare new dev and staging enviroments to deploy (#618) * Repare new dev and staging enviroments to deploy - Add to `deploy_pull_requests.sh` to the new path. - Replace upload-dir to deploy staging to the new path. * add /app/ public path for the webapp, remove duplicate yarn build from travis * add basename to app * deploy pr to /app * update travis * linter error fixes * fix travis build script Co-authored-by: David Albela Pérez <3659067+davidalbela@users.noreply.github.com> * (fix) sidebar contents' scrolling (#622) * (add) linter sorting rules (#614) * (add) linter sorting rules * (fix) linting errors according to the new rules Co-authored-by: Fernando <fernando.greco@gmail.com> * (feature): [Safe Apps] App Transaction List Details (#601) * Adding IconText component * Get origin for TXs in Redux * Adding Icon and name app to transaction list * Fix customTx condition * Fix HTML element for text * simplify condition * Bug: Accounts/Network are not updated in production build (#625) * Adding Apps info to toast notification (#621) * Adding APP_Name for APPs TXs in toast messages * refactor: save appId instead of appName in origin field * adding fallback icon and message to TX apps table * review changes * review fixes * force build * update Apps list info (#629) * update Apps list info * fix * Feature: replace web3connect with onboardjs (#456) * init onboard.js * dep bump * initial replacement of web3connect with onboard.js * use averta font in the modal * update onboard.js, add handlers for session murder * update preferred wallets * implement reconnecting to injected provider * fix duplicate wallet disconnected notification * update onboard dep * onboardjs fixes * test onboard js with hw * add https to rpcUrl * Added saved wallet and transactions validation * made Transactions validation * bnc-onboard version updated * Fix lock/unlock problem * bump onboardjs version * fixed material-ui lab version * Update onboard version * Added hw wallets integration * Updated preferred wallets * Add ledger modal * Merge with dev * Update onboard * BUmp new version of onboardjs * Added some logs * Added some logs * Update onboardjs version fix ledger connection * Update onboardjs version fix ledger connection * Bump new onboardjs version * Update new version * Made improvements * yarn.lock regenration * remove https=true * Remove comments and added some improvements * Updated package.json dep * Removed unused deps * Remove web3connect dep Co-authored-by: lukasschor <lukas.schor@gnosis.pm> Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com> * Passing ethBalance to Apps component (#636) * (Fix) Update safe modal verbiage (#633) * Fixs verbiage in update safe modal * Fixs yarn lock * Bump dependencies (#639) * Use hash history (#638) * v1.7.3 (#611) * Fix #597: USD value not load (#609) * Converts all the addresses to checksum values * Fix for empty address * fix the order of transactions, change updateSafe to upgradeSafe to avoid naming confusion with the updateSafe action (#610) * Fix #596: Notification when safe is already updated (#599) * Fix notification of update if the safe is already updated * Makes the notification clickable Displays the notification for owners only * Identify upgrade tx * Add red badge to Settings tab * Fixs Padding Removes the red dot if the user is not an owner Co-authored-by: Fernando <fernando.greco@gmail.com> Co-authored-by: Fernando <fernando.greco@gmail.com> Co-authored-by: Agustin Pane <agustin.pane@gmail.com> * Update package.json (#612) * Add public url to prod webpack config (#615) * add public url to prod webpack config * modify travis/webpack config to add public url * add slash * cherry pick new travis yml merge commit (#620) * use hash history Co-authored-by: Fernando <fernando.greco@gmail.com> Co-authored-by: Agustin Pane <agustin.pane@gmail.com> * - Updates how the transactions are ordered, now orders by nonce and then by date (#640) * (Fix) Lowercased safes address in URL (#631) * Return checksummed addrress from `safeParamAddressFromState` selector * Update `yarn.lock` * Remove redundant `toChecksumAddress` call Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com> Co-authored-by: Mikhail Mikheev <mmvsha73@gmail.com> Co-authored-by: Agustin Pane <agustin.pane@gmail.com> Co-authored-by: Gabriel Rodríguez Alsina <gabitoesmiapodo@users.noreply.github.com> Co-authored-by: nicolas <nicosampler@users.noreply.github.com> Co-authored-by: David Albela Pérez <3659067+davidalbela@users.noreply.github.com> Co-authored-by: lukasschor <lukas.schor@gnosis.pm> Co-authored-by: Mati Dastugue <matiasdastugue@gmail.com> Co-authored-by: francovenica <francovenica@gmail.com>
2020-03-09 16:06:40 +00:00
aws s3 sync build s3://${REVIEW_BUCKET_NAME}/${REVIEW_RELEASE_FOLDER}/app --delete --exclude "*" --include "*.html" --cache-control max-age=0,no-cache,no-store,must-revalidate --content-type text/html
fi