@@ -2,25 +2,25 @@ name: Sharing Smart Contract - Deployment
22
33on :
44 workflow_dispatch : # Manual trigger
5- inputs :
6- network :
7- description : ' Network'
8- required : true
9- type : choice
10- options :
11- - hardhat
12- - avalancheFujiTestnet
13- - arbitrumSepolia
14- - bellecour
15- default : ' hardhat'
16- environment :
17- description : ' Environment'
18- required : true
19- type : choice
20- options :
21- - testnets
22- - mainnets
23- default : ' testnets'
5+ # inputs:
6+ # network:
7+ # description: 'Network'
8+ # required: true
9+ # type: choice
10+ # options:
11+ # - hardhat
12+ # - avalancheFujiTestnet
13+ # - arbitrumSepolia
14+ # - bellecour
15+ # default: 'hardhat'
16+ # environment:
17+ # description: 'Environment'
18+ # required: true
19+ # type: choice
20+ # options:
21+ # - testnets
22+ # - mainnets
23+ # default: 'testnets'
2424
2525jobs :
2626
@@ -31,36 +31,38 @@ jobs:
3131 with :
3232 fetch-depth : 0
3333 - name : Validate mainnet deployment conditions
34+ run : echo 'Validated'
3435 # TODO update this when we have other mainnets
35- run : |
36- if [[ \
37- "${{ inputs.environment }}" == "mainnets" && \
38- !("${{ inputs.network }}" == "bellecour" && "${{ github.ref }}" == "refs/heads/main") \
39- ]]; then
40- echo "::error::Bellecour mainnet deployments must be made from the main branch. Current branch: ${GITHUB_REF#refs/heads/}"
41- exit 1
42- fi
43- echo "Deployment validated!"
36+ # run: |
37+ # if [[ \
38+ # "${{ inputs.environment }}" == "mainnets" && \
39+ # !("${{ inputs.network }}" == "bellecour" && "${{ github.ref }}" == "refs/heads/main") \
40+ # ]]; then
41+ # echo "::error::Bellecour mainnet deployments must be made from the main branch. Current branch: ${GITHUB_REF#refs/heads/}"
42+ # exit 1
43+ # fi
44+ # echo "Deployment validated!"
4445
4546 build-and-test :
4647 needs : validate
4748 runs-on : ubuntu-latest
4849 permissions :
4950 contents : write
5051 steps :
51- - uses : ./common
52+ - uses : actions/checkout@v4
53+ - uses : ./.github/actions/composite/sharing-smart-contract-common
5254 with :
5355 node-version : ' 18'
5456
55- deploy :
56- needs : build-and-test
57- runs-on : ubuntu-latest
58- permissions :
59- contents : write # Required for saving deployment
60- environment : ${{ inputs.environment }} # Use the selected environment
61- steps :
62- - name : Say Hello
63- run : echo "Hello from the deploy job!"
57+ # deploy:
58+ # needs: build-and-test
59+ # runs-on: ubuntu-latest
60+ # permissions:
61+ # contents: write # Required for saving deployment
62+ # environment: ${{ inputs.environment }} # Use the selected environment
63+ # steps:
64+ # - name: Say Hello
65+ # run: echo "Hello from the deploy job!"
6466
6567 # - uses: actions/checkout@v4
6668 # with:
0 commit comments