Skip to content

Merge pull request #428 from Dev-Dynammo/main #149

Merge pull request #428 from Dev-Dynammo/main

Merge pull request #428 from Dev-Dynammo/main #149

Workflow file for this run

name: Vite Build
on:
push:
branches:
- main
pull_request:
branches:
- main
env:
NODE_VERSION: 18.16.0
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Build Vite project
env:
VITE_FIREBASE_API_KEY: ${{ secrets.VITE_FIREBASE_API_KEY }}
VITE_FIREBASE_APP_ID: ${{ secrets.VITE_FIREBASE_APP_ID }}
VITE_FIREBASE_AUTH_DOMAIN: ${{ secrets.VITE_FIREBASE_AUTH_DOMAIN }}
VITE_FIREBASE_DATABASE_URL: ${{ secrets.VITE_FIREBASE_DATABASE_URL }}
VITE_FIREBASE_GOOGLE_MAP_API_KEY: ${{ secrets.VITE_FIREBASE_GOOGLE_MAP_API_KEY }}
VITE_FIREBASE_MEASUREMENT_ID: ${{ secrets.VITE_FIREBASE_MEASUREMENT_ID }}
VITE_FIREBASE_MEASUREMENT_SENDER_ID: ${{ secrets.VITE_FIREBASE_MEASUREMENT_SENDER_ID }}
VITE_FIREBASE_PROJECT_ID: ${{ secrets.VITE_FIREBASE_PROJECT_ID }}
VITE_FIREBASE_STORAGE_BUCKET: ${{ secrets.VITE_FIREBASE_STORAGE_BUCKET }}
VITE_MAPBOX_ACCESS_TOKEN: ${{ secrets.VITE_MAPBOX_ACCESS_TOKEN }}
run: |
npm run build
# You can access the repository variables in your Vite project as process.env.API_KEY and process.env.API_SECRET