Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
505f6d9
-
kumawatkaran523 Jun 4, 2025
5a178ba
removed env
kumawatkaran523 Jun 9, 2025
61894ff
removed chainlink
kumawatkaran523 Jun 9, 2025
a6c2fac
removed chainlink
kumawatkaran523 Jun 9, 2025
3231f30
added env-copy
kumawatkaran523 Jun 9, 2025
8a05a03
removed unecessary folder
kumawatkaran523 Jun 9, 2025
91c1925
changed app.jsx
kumawatkaran523 Jun 9, 2025
86982f7
readme update
kumawatkaran523 Jun 9, 2025
e7c3f41
readme update
kumawatkaran523 Jun 9, 2025
77f3b14
updated contract
kumawatkaran523 Jun 16, 2025
3c9220a
updated UI and contract ABI
kumawatkaran523 Jun 16, 2025
1b7aecd
refactor: optimize Lit client init and invoice fetch
kumawatkaran523 Jul 3, 2025
ce51cbe
update readme
kumawatkaran523 Jul 3, 2025
e412537
updated contract
kumawatkaran523 Jul 3, 2025
54fefc3
removed calculation error
kumawatkaran523 Jul 3, 2025
3aa274f
removed calculation error
kumawatkaran523 Jul 3, 2025
4bc2776
correct typo
kumawatkaran523 Jul 3, 2025
ab1bafc
Security concern: Insufficient access control validation
kumawatkaran523 Jul 3, 2025
673ffa1
Updated dashboard,treasury account and routes
kumawatkaran523 Jul 4, 2025
4cd4795
correct some error
kumawatkaran523 Jul 5, 2025
86c54ef
Merge branch 'main' into main
kumawatkaran523 Jul 5, 2025
a54324c
added mobile menu
kumawatkaran523 Jul 8, 2025
538e82c
added erc20 token,updated contract,erc20abi,frontend
kumawatkaran523 Jul 10, 2025
1ce69bb
updated contract
kumawatkaran523 Jul 10, 2025
e390b0f
added erc20 logic
kumawatkaran523 Jul 12, 2025
c98624e
update ui
kumawatkaran523 Jul 12, 2025
99defe6
treasure fee set
kumawatkaran523 Jul 13, 2025
545031b
contract update with cancel property
kumawatkaran523 Aug 14, 2025
e46a4f3
frontend update with cancel property
kumawatkaran523 Aug 14, 2025
9a5ae47
frontend update with cancel property
kumawatkaran523 Aug 14, 2025
7717396
file conflict resolve
kumawatkaran523 Aug 14, 2025
c43085e
-
kumawatkaran523 Aug 14, 2025
363b696
-
kumawatkaran523 Aug 14, 2025
bfc9f7a
prefilled url feature open
kumawatkaran523 Aug 21, 2025
2670801
prefilled url feature complete
kumawatkaran523 Aug 22, 2025
dffd379
conftlict resolve
kumawatkaran523 Aug 22, 2025
8d67011
conftlict resolve
kumawatkaran523 Aug 22, 2025
ed7d128
Merge branch 'main' of https://github.com/StabilityNexus/Chainvoice
kumawatkaran523 Aug 26, 2025
622f85b
token selector improvement
kumawatkaran523 Aug 26, 2025
3917838
token selector improvement
kumawatkaran523 Aug 26, 2025
10ef878
token selector improvement
kumawatkaran523 Aug 26, 2025
569d21f
Batch creation and batch payment
kumawatkaran523 Sep 20, 2025
7d2f6a4
Batch creation and batch payment contract updation
kumawatkaran523 Sep 20, 2025
46390b8
Merge branch 'main' into main
kumawatkaran523 Sep 20, 2025
61a3615
Update next.yml to deploy.yml
kumawatkaran523 Sep 20, 2025
c434544
Update next.yml to deploy.yml
kumawatkaran523 Sep 20, 2025
c206adb
Update next.yml to deploy.yml
kumawatkaran523 Sep 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 42 additions & 31 deletions .github/workflows/nextjs.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
# Sample workflow for building and deploying a Next.js site to GitHub Pages
#
# To get started with Next.js see: https://nextjs.org/docs/getting-started
#
name: Deploy Next.js site to Pages
# Sample workflow for building and deploying a Vite React site to GitHub Pages
# This workflow handles a monorepo structure with frontend in a subfolder
name: Deploy Vite React site to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -25,69 +22,83 @@ concurrency:
cancel-in-progress: false

jobs:
# Build job
# Build job - compiles the React app using Vite
build:
runs-on: ubuntu-latest
steps:
# Download repository code
- name: Checkout
uses: actions/checkout@v4

# Detect package manager with robust lockfile handling
- name: Detect package manager
id: detect-package-manager
run: |
if [ -f "${{ github.workspace }}/yarn.lock" ]; then
FRONTEND="${{ github.workspace }}/frontend"
# Check for yarn.lock first in frontend directory
if [ -f "$FRONTEND/yarn.lock" ]; then
echo "manager=yarn" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=yarn" >> $GITHUB_OUTPUT
echo "lockfile_path=frontend/yarn.lock" >> $GITHUB_OUTPUT
exit 0
elif [ -f "${{ github.workspace }}/package.json" ]; then
# Check for package-lock.json (prefer npm ci when lockfile exists)
elif [ -f "$FRONTEND/package-lock.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=ci" >> $GITHUB_OUTPUT
echo "runner=npx --no-install" >> $GITHUB_OUTPUT
echo "runner=npm" >> $GITHUB_OUTPUT
echo "lockfile_path=frontend/package-lock.json" >> $GITHUB_OUTPUT
exit 0
# Fallback to npm install when only package.json exists
elif [ -f "$FRONTEND/package.json" ]; then
echo "manager=npm" >> $GITHUB_OUTPUT
echo "command=install" >> $GITHUB_OUTPUT
echo "runner=npm" >> $GITHUB_OUTPUT
echo "lockfile_path=" >> $GITHUB_OUTPUT
exit 0
else
echo "Unable to determine package manager"
# Neither found - fail the build
echo "Unable to determine package manager (missing frontend/)"
exit 1
fi

# Setup Node.js environment with built-in caching
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
cache-dependency-path: ${{ steps.detect-package-manager.outputs.lockfile_path }}

# Configure GitHub Pages
- name: Setup Pages
uses: actions/configure-pages@v5
with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
- name: Restore cache
uses: actions/cache@v4
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-

# Install project dependencies using detected package manager
- name: Install dependencies
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
- name: Build with Next.js
run: ${{ steps.detect-package-manager.outputs.runner }} next build
working-directory: ./frontend

# Build the React app using Vite
- name: Build with Vite
run: ${{ steps.detect-package-manager.outputs.runner }} run build
working-directory: ./frontend

# Upload the built files for deployment
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./out
path: ./frontend/dist

# Deployment job
# Deployment job - deploys the built files to GitHub Pages
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
# Deploy the uploaded artifact to GitHub Pages
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
Loading