-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: deployment action for all applications #3605
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
165e055
chore: bootstrap releases for path: .
shoom3301 6557829
chore: release-please monorepo
shoom3301 2c0a5c6
chore: remove cowswap changelog
shoom3301 5ef1d6a
chore: set bootstrap-sha
shoom3301 9082c5e
chore: set last-release-sha
shoom3301 7bc2113
chore: set release-search-depth
shoom3301 d1c90d2
chore: set release-search-depth
shoom3301 61b9b45
chore: set bootstrap-sha
shoom3301 6b286f9
fix(permit-utils): use const for default permit gas limit
shoom3301 e729e16
chore: update package json paths
shoom3301 4d22b1b
chore: set release-search-depth
shoom3301 266477c
chore: set release-search-depth
shoom3301 476ef7d
chore: set release-search-depth
shoom3301 b1212d8
chore: set bootstrap-sha
shoom3301 2ecf115
chore: set bootstrap-sha
shoom3301 052b26b
chore: set bootstrap-sha
shoom3301 9840ec3
chore: set bootstrap-sha
shoom3301 3996183
chore: set last-release-sha
shoom3301 a8ff453
chore: more libs
shoom3301 adde6e3
ci: deployment action for all applications
shoom3301 918da26
Merge branch 'develop' of https://github.com/cowprotocol/cowswap into…
shoom3301 e55b16b
chore: fix desc
shoom3301 fb57666
Merge branch 'test-rp' of https://github.com/cowprotocol/cowswap into…
shoom3301 3be22c5
chore: fix project_suffix
shoom3301 9cf2afa
chore: fix desc
shoom3301 939dcc7
Merge branch 'develop' of https://github.com/cowprotocol/cowswap into…
shoom3301 39f4287
chore: add env vars for Explorer
shoom3301 e5e6541
chore: fix comment
shoom3301 21f9dc2
chore: fix sentry vars
shoom3301 9d403d6
chore: fix comments
shoom3301 b124a38
chore: remove unused var
shoom3301 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,10 @@ on: | |
description: 'Environment to deploy to. Options are: dev, staging, barn and prod' | ||
required: true | ||
type: string | ||
app: | ||
description: 'Application to deploy. Options are: ALL, COWSWAP, EXPLORER' | ||
required: true | ||
type: string | ||
|
||
env: | ||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | ||
|
@@ -17,13 +21,17 @@ jobs: | |
environment: ${{ inputs.env_name }} # Environment rules defined on GH UI | ||
concurrency: ${{ inputs.env_name }} # Only one run per env at a time | ||
|
||
strategy: | ||
matrix: | ||
project_suffix: ${{ inputs.app == 'ALL' && [COWSWAP, EXPLORER] || [input.app] }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. After this we will need some process to add a new app, to remember to do all the steps
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will add a process to notion |
||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set VERCEL_PROJECT_ID env var | ||
# It's set in each env's config on https://github.com/cowprotocol/cowswap/settings/environments | ||
run: echo "VERCEL_PROJECT_ID=${{ secrets.VERCEL_PROJECT_ID }}" >> $GITHUB_ENV | ||
run: echo "VERCEL_PROJECT_ID=${{ secrets[format('VERCEL_PROJECT_ID_{0}', matrix.project_suffix)] }}" >> $GITHUB_ENV | ||
shoom3301 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
|
@@ -33,6 +41,7 @@ jobs: | |
|
||
- name: Build Project Artifacts | ||
run: > | ||
: # CoWSwap env vars | ||
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 }} | ||
|
@@ -45,6 +54,13 @@ jobs: | |
REACT_APP_NETWORK_URL_5=${{ secrets.REACT_APP_NETWORK_URL_5 }} | ||
REACT_APP_NETWORK_URL_11155111=${{ secrets.REACT_APP_NETWORK_URL_11155111 }} | ||
REACT_APP_WC_PROJECT_ID=${{ secrets.REACT_APP_WC_PROJECT_ID }} | ||
: # Explorer env vars | ||
REACT_APP_IPFS_READ_URI=${{ secrets.REACT_APP_IPFS_READ_URI }} | ||
REACT_APP_EXPLORER_SENTRY_DSN=${{ secrets.EXPLORER_SENTRY_DSN }} | ||
REACT_APP_EXPLORER_GOOGLE_ANALYTICS_ID=${{ secrets.EXPLORER_GOOGLE_ANALYTICS_ID }} | ||
REACT_APP_SUBGRAPH_URL_MAINNET=${{ secrets.REACT_APP_SUBGRAPH_URL_MAINNET }} | ||
REACT_APP_SUBGRAPH_URL_GNOSIS_CHAIN=${{ secrets.REACT_APP_SUBGRAPH_URL_GNOSIS_CHAIN }} | ||
REACT_APP_SUBGRAPH_URL_GOERLI=${{ secrets.REACT_APP_SUBGRAPH_URL_GOERLI }} | ||
vercel build -t ${{ secrets.VERCEL_TOKEN }} --prod | ||
|
||
- name: Get the version | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool!