Skip to content

Set up environment variables #4 #7

Set up environment variables #4

Set up environment variables #4 #7

Workflow file for this run

name: Build and Deploy
on: [ push ]
defaults:
run:
working-directory: ./frontend
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Set up environment variables
run: echo ${{ secrets.PROJECT_ID }} > ./.env
- name: Install dependencies
run: npm install
- name: Build with Vite
run: npm run build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: Build
path: ./frontend/dist/