Skip to content

chore(workflow): set env variables to the build #3

chore(workflow): set env variables to the build

chore(workflow): set env variables to the build #3

Workflow file for this run

name: πŸš€ Deploy React App to Hostinger via FTP
on:
push:
branches:
- main
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: '18'
- name: πŸ“¦ Install dependencies
run: npm install
- name: πŸ— Build project
run: npm run build
env:
VITE_SUPABASE_URL: ${{ secrets.VITE_SUPABASE_URL }}
VITE_SUPABASE_KEY: ${{ secrets.VITE_SUPABASE_KEY }}
- name: πŸš€ Deploy to Hostinger via FTP
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USERNAME }}
password: ${{ secrets.FTP_PASSWORD }}
local-dir: build/
server-dir: ${{ secrets.FTP_TARGET_DIR }}/