Merge pull request #509 from Musab1258/feat/411-plugin-system #160
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to Production | |
| on: | |
| push: | |
| branches: [ main, master ] | |
| workflow_dispatch: # Allows manual trigger from GitHub UI | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 20 | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build project | |
| run: npm run build | |
| env: | |
| NEXT_PUBLIC_STELLAR_NETWORK: ${{ secrets.STELLAR_NETWORK }} | |
| # Add other env vars as needed | |
| - name: Deploy to Vercel (Recommended) | |
| uses: amondnet/vercel-action@v42 | |
| with: | |
| vercel-token: ${{ secrets.VERCEL_TOKEN }} | |
| vercel-org-id: ${{ secrets.VERCEL_ORG_ID }} | |
| vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }} | |
| vercel-args: '--prod' | |
| # Alternative: Deploy to Netlify | |
| # - name: Deploy to Netlify | |
| # uses: nwtgck/actions-netlify@v2 | |
| # with: | |
| # publish-dir: './out' or './.next' | |
| # production-branch: main | |
| # env: | |
| # NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} | |
| # NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} |