Bump Needle Engine to 4.16.5 #6
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: Build and Deploy to Needle Cloud | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| cache: 'npm' | |
| - name: Install dependencies | |
| run: npm ci | |
| # Build the web project | |
| - name: Build project | |
| run: npm run build:production | |
| env: | |
| NEEDLE_CLOUD_TOKEN: ${{ secrets.NEEDLE_CLOUD_TOKEN }} | |
| # Deploy to Needle Cloud | |
| - name: Deploy to Needle Cloud | |
| uses: needle-tools/deploy-to-needle-cloud-action@v1 | |
| id: deploy | |
| with: | |
| token: ${{ secrets.NEEDLE_CLOUD_TOKEN }} | |
| dir: ./dist | |
| # name: vite-template # (optional, using the repository name if not provided) | |
| env: | |
| NODE_ENV: production | |
| NEEDLE_CLOUD_TOKEN: ${{ secrets.NEEDLE_CLOUD_TOKEN }} | |
| # Display the deployment URL | |
| - name: Display deployment URL | |
| run: | | |
| echo "::notice title=Deployment URL::Deployed to ${{ steps.deploy.outputs.url }}" | |
| # Add to GitHub step summary (appears at bottom of workflow run) | |
| echo "## 🚀 Deployment Summary" >> $GITHUB_STEP_SUMMARY | |
| echo "Application has been successfully deployed to Needle Cloud!" >> $GITHUB_STEP_SUMMARY | |
| echo "**Deployment URL:** [${{ steps.deploy.outputs.url }}](${{ steps.deploy.outputs.url }})" >> $GITHUB_STEP_SUMMARY |