Skip to content

Commit

Permalink
Comment out unnecessary workflow step
Browse files Browse the repository at this point in the history
  • Loading branch information
RCantu92 committed May 25, 2023
1 parent 8583cc5 commit 83478fa
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,54 +163,54 @@ jobs:
env:
AUDIT_COMMIT: ${{ steps.parse.outputs.release_audited }}

deploy:
name: Deploy contracts
if: startsWith(github.head_ref, 'release/')
runs-on: ubuntu-22.04
timeout-minutes: 20
needs: prepare
environment: production
outputs:
deploy_commit: ${{ steps.commit.outputs.commit_hash }}
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v3
with:
node-version: '14'
cache: 'yarn'
- run: yarn install --frozen-lockfile
# deploy:
# name: Deploy contracts
# if: startsWith(github.head_ref, 'release/')
# runs-on: ubuntu-22.04
# timeout-minutes: 20
# needs: prepare
# environment: production
# outputs:
# deploy_commit: ${{ steps.commit.outputs.commit_hash }}
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.event.pull_request.head.sha }}
# - uses: actions/setup-node@v3
# with:
# node-version: '14'
# cache: 'yarn'
# - run: yarn install --frozen-lockfile

- name: Get build artifacts
uses: actions/download-artifact@v3
with:
name: contract-artifacts
# - name: Get build artifacts
# uses: actions/download-artifact@v3
# with:
# name: contract-artifacts

- name: Deploy contracts
run: eval yarn hardhat --network ${{ needs.prepare.outputs.release_network }} ${{ needs.prepare.outputs.release_deploy_cmd }}
env:
INFURA_PROJECT_ID: '${{ secrets.INFURA_PROJECT_ID }}'
MUMBAI_MNEMONIC: '${{ secrets.MUMBAI_MNEMONIC }}'
MUMBAI_NODE: '${{ secrets.MUMBAI_NODE }}'
POLYGON_MNEMONIC: '${{ secrets.POLYGON_MNEMONIC }}'
POLYGON_NODE: '${{ secrets.POLYGON_NODE }}'
POLYGON_GAS_PRICE: 1200000000000
DEBUG: '@openzeppelin:*'
# ETHERSCAN "${{ secrets.ETHERSCAN }}"
POLYSCAN: '${{ secrets.POLYSCAN }}'
RELEASE_PATH: '${{ needs.prepare.outputs.release_path }}'
MULTISIG_ADDRESS: '${{ needs.prepare.outputs.release_multisig }}'
# - name: Deploy contracts
# run: eval yarn hardhat --network ${{ needs.prepare.outputs.release_network }} ${{ needs.prepare.outputs.release_deploy_cmd }}
# env:
# INFURA_PROJECT_ID: '${{ secrets.INFURA_PROJECT_ID }}'
# MUMBAI_MNEMONIC: '${{ secrets.MUMBAI_MNEMONIC }}'
# MUMBAI_NODE: '${{ secrets.MUMBAI_NODE }}'
# POLYGON_MNEMONIC: '${{ secrets.POLYGON_MNEMONIC }}'
# POLYGON_NODE: '${{ secrets.POLYGON_NODE }}'
# POLYGON_GAS_PRICE: 1200000000000
# DEBUG: '@openzeppelin:*'
# # ETHERSCAN "${{ secrets.ETHERSCAN }}"
# POLYSCAN: '${{ secrets.POLYSCAN }}'
# RELEASE_PATH: '${{ needs.prepare.outputs.release_path }}'
# MULTISIG_ADDRESS: '${{ needs.prepare.outputs.release_multisig }}'

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
id: commit
if: always()
with:
commit_message: Update registries of deployed addresses
file_pattern: '.openzeppelin/ releases/'
skip_checkout: true
# tagging_message: '${{ needs.prepare.outputs.release_version }}'
# - name: Commit changes
# uses: stefanzweifel/git-auto-commit-action@v4
# id: commit
# if: always()
# with:
# commit_message: Update registries of deployed addresses
# file_pattern: '.openzeppelin/ releases/'
# skip_checkout: true
# # tagging_message: '${{ needs.prepare.outputs.release_version }}'

# verify:
# name: Verify contracts
Expand Down Expand Up @@ -259,7 +259,7 @@ jobs:
environment: production
needs:
- prepare
- deploy
# - deploy
steps:
- uses: actions/checkout@v3
with:
Expand Down

0 comments on commit 83478fa

Please sign in to comment.