From 29f757636f182fab6190970c720265dde142a11c Mon Sep 17 00:00:00 2001 From: charan bajgain Date: Fri, 13 Sep 2024 14:00:05 -0400 Subject: [PATCH] DAPP1-17: updated ci --- .github/workflows/ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bbca5bf..f67e1cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,4 +35,19 @@ jobs: run: npm install - name: Run Test - run: npm run test \ No newline at end of file + run: npm run test + - name: Deploy to CodeSandbox + env: + CODESANDBOX_API_TOKEN: ${{ secrets.CODESANDBOX_API_TOKEN }} + run: | + # Install CodeSandbox CLI if not already installed + npm install -g codesandbox + + # Log in to CodeSandbox + codesandbox login --token $CODESANDBOX_API_TOKEN + + # Create or update sandbox (replace with appropriate command or API call) + codesandbox create --name "Fortuna" --directory . + + # Optional: Publish or serve the sandbox (replace with appropriate command or API call) + codesandbox publish --sandbox "Fortuna" --port 3000 \ No newline at end of file