Skip to content

Update App.css just to trigger a deploy #56

Update App.css just to trigger a deploy

Update App.css just to trigger a deploy #56

name: Deploy to Netlify
on:
push:
paths:
- 'src/**'
- 'index.html'
jobs:
deploy:
runs-on: ubuntu-latest
# env:
# NODE_ENV: production
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20' # or any version you prefer
- name: Install dependencies
run: npm install
- name: Fix permissions for Vite
run: chmod +x ./node_modules/.bin/vite
- name: Build project
run: npm run build
- name: Install Netlify CLI
run: npm install -g netlify-cli
- name: build netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: netlify build
- name: Deploy to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
run: npx netlify deploy --prod --dir=dist # Adjust the directory to your build output folder