Skip to content

PRESENTATION PPT ADDING #16

PRESENTATION PPT ADDING

PRESENTATION PPT ADDING #16

Workflow file for this run

name: Deploy to Netlify
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install frontend dependencies
run: |
cd frontend
npm ci
- name: Build frontend
run: |
cd frontend
npm run build
env:
VITE_API_BASE_URL: ${{ secrets.VITE_API_BASE_URL }}
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v2.1
with:
publish-dir: './frontend/dist'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 5
if: env.NETLIFY_AUTH_TOKEN != '' && env.NETLIFY_SITE_ID != ''