From a832f188639604f82eee321823ab4804c82ab577 Mon Sep 17 00:00:00 2001 From: Aram Kocharyan Date: Tue, 6 Aug 2024 15:03:08 +0400 Subject: [PATCH] Initial test for auto-deployment --- .github/workflows/deploy-evms.yml | 57 +++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 .github/workflows/deploy-evms.yml diff --git a/.github/workflows/deploy-evms.yml b/.github/workflows/deploy-evms.yml new file mode 100644 index 0000000..3ae9cd9 --- /dev/null +++ b/.github/workflows/deploy-evms.yml @@ -0,0 +1,57 @@ +name: Deploy Solidity Smart Contract + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + deploy: + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [16.x] + + steps: + - uses: actions/checkout@v2 + + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + + - name: Navigate to evm folder + run: cd packages/evm + + - name: Install dependencies + run: npm ci + + - name: Navigate to evm folder + run: cd packages/evm/solidity + + - name: Compile contracts + run: npx hardhat compile + + # - name: Run tests + # run: npx hardhat test + + # deploy eth contracts + - name: Deploy to Sepolia testnet + run: npx hardhat run scripts/deployETH.js --network sepolia + + - name: Deploy to Optimism Sepolia testnet + run: npx hardhat run scripts/deployETH.js --network optimismSepolia + + - name: Deploy to Arbitrum Sepolia testnet + run: npx hardhat run scripts/deployETH.js --network arbitrumSepolia + + - name: Deploy to Linea Sepolia testnet + run: npx hardhat run scripts/deployETH.js --network lineaSepolia + + - name: Deploy to Taiko Hekla testnet + run: npx hardhat run scripts/deployETH.js --network taikoHekla + + - name: Deploy to Immutable Testnet + run: npx hardhat run scripts/deployETH.js --network immutableTestnet \ No newline at end of file