Skip to content

Get data from lambda instead of google sheet #48

Get data from lambda instead of google sheet

Get data from lambda instead of google sheet #48

name: Deploy to Netlify
on:
push:
paths:
- 'src/**'
- 'index.html'
jobs:
deploy:
runs-on: ubuntu-latest
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