File tree Expand file tree Collapse file tree 1 file changed +1
-24
lines changed
Expand file tree Collapse file tree 1 file changed +1
-24
lines changed Original file line number Diff line number Diff line change 2323 - prod
2424 default : ' dev'
2525
26-
2726jobs :
28-
29- # Validate deployment network and environment.
30- validate :
31- runs-on : ubuntu-latest
32- steps :
33- - uses : actions/checkout@v4
34- with :
35- fetch-depth : 0
36-
37- # On Github, the environment `mainnets` is restricted to
38- # the main branch. Here we check that it's only used with
39- # mainnet networks.
40- - name : Validate mainnet deployment
41- run : |
42- if [[ "${{ inputs.environment }}" == "mainnets" && "${{ inputs.network }}" != "bellecour" ]]; then
43- echo "::error::mainnets environment can only be used with mainnet networks."
44- exit 1
45- fi
46- echo "Deploying to network '${{ inputs.network }}' with environment '${{ inputs.environment }}'."
47-
48- # Deploy and verify contract.
4927 build-and-test :
50- needs : validate
5128 uses : ./.github/workflows/sharing-smart-contracts-ci.yml
5229 with :
5330 node-version : 20
8663 run : |
8764 NETWORK="${{ inputs.network }}"
8865 ENVIRONMENT="${{ inputs.environment }}"
89-
66+
9067 case "$NETWORK" in
9168 arbitrum|bellecour)
9269 if [ "$ENVIRONMENT" = "dev" ]; then
You can’t perform that action at this time.
0 commit comments