Skip to content

Commit

Permalink
feat: add smart contract types and deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
raghav-rama committed Nov 28, 2024
1 parent 7c87470 commit 931fc52
Show file tree
Hide file tree
Showing 25 changed files with 207 additions and 26 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Deploy to AWS Elastic Beanstalk

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Install Dependencies
run: npm install

- name: Run Tests
run: npm test

- name: Generate deployment package
run: zip -r deploy.zip . -x "*.git*"

- name: Deploy to EB
uses: einaregilsson/beanstalk-deploy@v21
with:
aws_access_key: ${{ secrets.AWS_ACCESS_KEY }}
aws_secret_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
application_name: leveragefunbot
environment_name: LeverageFunBot-env
version_label: ${{ github.sha }}
region: ${{ secrets.AWS_REGION }}
deployment_package: deploy.zip
11 changes: 8 additions & 3 deletions dist/src/config.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/config.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 51 additions & 10 deletions dist/src/controllers/mintOptions.controller.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/src/controllers/mintOptions.controller.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions dist/src/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 931fc52

Please sign in to comment.