Skip to content

Update deploy.yml

Update deploy.yml #19

Workflow file for this run

name: Deploy Smart Contract
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '*'
- name: Install dependencies
run: npm install
- name: Install Truffle
run: npm install -g truffle
- name: Compile and Deploy Smart Contract
run: |
npm run build
truffle migrate --reset --network development