मुख्य सामग्री पर जाएं
Tenderly Virtual Environments पर Hardhat के साथ Continuous Integration और Continuous Deployment pipeline (CI/CD) सेट करने के लिए GitHub Action को कॉन्फ़िगर करना सीखें। कई networks में अपने contracts को test और deploy करने वाले स्वचालित builds को सक्षम करने के लिए Tenderly Virtual Environment Setup का उपयोग करें। सफल testing के बाद, आप उन्हें प्रोविज़न किए गए Virtual Environments पर deploy करके अपनी बाकी team के लिए stage कर सकते हैं। इस गाइड में, आपको दो चरण पूरे करने होंगे:
  1. Local setup: Hardhat सेट करें और workflow file बनाएं और उसका परीक्षण करें।
  2. Github setup: GitHub Action सेट करें, GitHub secrets और variables कॉन्फ़िगर करें, और build को टेस्ट करें।
संदर्भ के लिए, इस उदाहरण प्रोजेक्ट का उपयोग करें:

CI/CD setup with hardhat-ignition

यह गाइड Hardhat-ignition पर निर्भर एक CI setup प्रदर्शित करती है। hardhat-verify setup के लिए, प्रक्रिया और configuration समान हैं।
Continuous integration (CI) and continous deployment (CD) with Virtual Environments

Virtual Environments के साथ continuous integration (CI) और continous deployment (CD)

Stage 1: Local setup

पहले, हम आवश्यक dependencies स्थापित करेंगे और एक workflow file बनाएंगे।

Stage 2: Github Setup

सफल local setup के बाद, environment variables और आवश्यक secrets के साथ Github कॉन्फ़िगर करके आगे बढ़ें।

Environment Variables Reference

GitHub Action निम्न network-specific variables को उजागर करती है:

अगले कदम

अन्य उदाहरण explore करें: