Skip to content

Commit

Permalink
DAPP1-17: updated ci
Browse files Browse the repository at this point in the history
  • Loading branch information
charunb committed Sep 13, 2024
1 parent 29f7576 commit d5df107
Showing 1 changed file with 12 additions and 15 deletions.
27 changes: 12 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,15 @@ jobs:

- name: Run Test
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
code-sandbox:
name: CodeSandbox CI
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Use CodeSandbox CI
uses: codesandbox/sandbox-ci-action@v1
with:
token: ${{ secrets.CODESANDBOX_API_TOKEN }}

0 comments on commit d5df107

Please sign in to comment.