@@ -104,6 +104,16 @@ jobs:
104104 npm run deploy -- --network ${{ inputs.network }}
105105 fi
106106
107+ - name : Save deployment artifacts
108+ if : inputs.network != 'hardhat'
109+ uses : stefanzweifel/git-auto-commit-action@v5
110+ with :
111+ commit_message : ' chore: save deployment artifacts for ${{ inputs.network }} ${{ inputs.environment }} (${{ github.run_id }})'
112+ file_pattern : ' packages/sharing-smart-contract/ignition/deployments/* packages/sharing-smart-contract/.openzeppelin/*'
113+ commit_user_name : ' GitHub Actions Bot'
114+ commit_user_email : ' github-actions[bot]@users.noreply.github.com'
115+ commit_author : ' GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>'
116+
107117 - name : Verify contracts
108118 if : inputs.network != 'hardhat'
109119 working-directory : packages/sharing-smart-contract
@@ -114,13 +124,3 @@ jobs:
114124 IS_VERIFICATION_API_V2 : ${{ vars.IS_VERIFICATION_API_V2 }}
115125 run : |
116126 npm run verify:ignition -- ${{ steps.deploy.outputs.deployment-id }} --network ${{ inputs.network }}
117-
118- - name : Save deployment artifacts
119- if : inputs.network != 'hardhat'
120- uses : stefanzweifel/git-auto-commit-action@v5
121- with :
122- commit_message : ' chore: save deployment artifacts for ${{ inputs.network }} ${{ inputs.environment }} (${{ github.run_id }})'
123- file_pattern : ' packages/sharing-smart-contract/ignition/deployments/* packages/sharing-smart-contract/.openzeppelin/*'
124- commit_user_name : ' GitHub Actions Bot'
125- commit_user_email : ' github-actions[bot]@users.noreply.github.com'
126- commit_author : ' GitHub Actions Bot <github-actions[bot]@users.noreply.github.com>'
0 commit comments