Skip to content

Commit 7ed7f2e

Browse files
committed
Merge branch 'fix/dataProtector-sharing-fix-ci' of https://github.com/iExecBlockchainComputing/dataprotector-sdk into fix/dataProtector-sharing-fix-ci
2 parents 97aedc2 + ba392cc commit 7ed7f2e

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

.github/workflows/sharing-smart-contract-deploy.yml

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -23,31 +23,8 @@ on:
2323
- prod
2424
default: 'dev'
2525

26-
2726
jobs:
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
@@ -86,7 +63,7 @@ jobs:
8663
run: |
8764
NETWORK="${{ inputs.network }}"
8865
ENVIRONMENT="${{ inputs.environment }}"
89-
66+
9067
case "$NETWORK" in
9168
arbitrum|bellecour)
9269
if [ "$ENVIRONMENT" = "dev" ]; then

0 commit comments

Comments
 (0)