diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a5cc3fb..82d26c1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,9 @@ jobs: - name: Install dependencies run: npm install + - name: Copy .env file + run: echo "${{ secrets.ENV_FILE }}" > .env + - name: Build the Vite app run: npm run build @@ -47,4 +50,4 @@ jobs: - name: Rollout restart the deployment run: | - kubectl rollout restart -n lgtu deployments/oeteco-front + kubectl rollout restart -n oeteco deployments/oeteco-front diff --git a/package.json b/package.json index 01d9c42..a9ad4ee 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "react-scripts build", + "build": "CI=false && react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" },