Skip to content

Commit ca79aa7

Browse files
committed
Test deploy action
1 parent 12076f2 commit ca79aa7

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed

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

Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@ name: Sharing Smart Contract - Deployment
22

33
on:
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

2525
jobs:
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

Comments
 (0)