Skip to content

Merge branch 'master' of https://github.com/portobanco51/marcelo3dpor… #19

Merge branch 'master' of https://github.com/portobanco51/marcelo3dpor…

Merge branch 'master' of https://github.com/portobanco51/marcelo3dpor… #19

Workflow file for this run

name: Deploy to Production
on:
workflow_dispatch:
push:
branches:
- master
paths-ignore:
- "**.md"
- "**.yml"
jobs:
deploy:
runs-on: ubuntu-latest
env:
API_KEY: ${{ secrets.API_KEY }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Install Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install project dependencies
run: |
npm install
echo Dependencies installed successfully
- name: Generate API keys
run: |
echo VITE_REACT_APP_API_KEY=$API_KEY > .env
echo API keys generated successfully
- name: Build project for production
run: |
npm run winBuild
echo Project built successfully
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build
path: dist
- name: Install Netlify CLI and deploy to prod
run: |
npm install netlify-cli --save-dev
netlify deploy --site ${{ secrets.NETLIFY_SITE_ID }} --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} --dir=dist --prod
echo App is live