Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: script for deploy #51

Merged
merged 2 commits into from
Jul 30, 2024
Merged

feat: script for deploy #51

merged 2 commits into from
Jul 30, 2024

Conversation

kentsday
Copy link
Contributor

@kentsday kentsday commented Jul 30, 2024

Summary by CodeRabbit

  • New Features

    • Introduced automated deployment workflows for pull requests and pushes to the main branch.
    • Added a new Bash script to facilitate the setup and building of a testnet environment.
    • Configured Vercel deployment settings for private access.
  • Changes

    • Updated API integration points for the wallet application, shifting from EX3 to HIBIT services.
    • Created a new configuration file to manage deployment settings for Vercel.
  • Bug Fixes

    • Resolved configuration issues related to environment variables in the wallet application.

Copy link
Contributor

coderabbitai bot commented Jul 30, 2024

Walkthrough

This update introduces new workflows for automated deployments on GitHub, specifically for pull requests and the main branch. It also modifies the wallet application's environment variables and scripts, shifting its integration from the EX3 API to the HIBIT API. The configurations ensure seamless deployment to Vercel while adapting the app's functionality to the new services.

Changes

Files Change Summary
.github/workflows/pr_deploy.yaml Added a GitHub Actions workflow for deploying the application on pull requests to Vercel.
.github/workflows/testnet-deploy.yml Added a GitHub Actions workflow for deploying the testnet website on pushes to the main branch.
apps/wallet/.env, apps/wallet/.env.development Removed EX3 API variables and added HIBIT API variables, indicating a shift in the backend service integration for the wallet application.
apps/wallet/src/apis/index.ts Updated Axios baseURL from EX3 to HIBIT ID API.
scripts/build_hibit_1.sh Modified environment variable exports to align with HIBIT API, and changed VITE_APP_ENV from Mainnet to TestNet.
scripts/build_testnet.sh Introduced a new script to automate the setup and building process for the testnet environment with specific HIBIT configurations.
vercel.json Added configuration settings for Vercel deployment, including the output directory and private access settings.

Sequence Diagram(s)

sequenceDiagram
    participant Developer
    participant GitHub Actions
    participant Vercel
    Developer->>GitHub Actions: Create Pull Request
    GitHub Actions->>Vercel: Trigger Deployment
    Vercel-->>GitHub Actions: Deployment Successful
    GitHub Actions-->>Developer: Notify Deployment Status
Loading

Poem

🐰
In fields of code where rabbits hop,
New workflows bloom, they never stop!
From EX3 to HIBIT, a fresh delight,
Deployments dance beneath the moonlight.
With every change, the magic grows,
A hop, a skip, where the adventure flows!
🌟


Note

Summarized by CodeRabbit Free

Your organization is on the Free plan. CodeRabbit will generate a high-level summary and a walkthrough for each pull request. For a comprehensive line-by-line review, please upgrade your subscription to CodeRabbit Pro by visiting https://app.coderabbit.ai/login.

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

github-actions bot commented Jul 30, 2024

Deploy preview for hibit-id ready!

✅ Preview
https://hibit-8jf4epdzp-delandlabs-projects.vercel.app

Built with commit 2395d59.
This pull request is being automatically deployed with vercel-action

@kentsday kentsday merged commit 9e2adfe into main Jul 30, 2024
2 checks passed
@kentsday kentsday deleted the feature/deploy branch July 30, 2024 05:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant