Skip to content

Commit

Permalink
Merge branch 'production' of https://github.com/InternAcademy/CookingApp
Browse files Browse the repository at this point in the history
 into production
  • Loading branch information
ImSk1 committed Aug 19, 2024
2 parents ea55d2b + 85b5fe2 commit 529f463
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/azure-static-web-apps-red-cliff-08de16103.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,33 @@ jobs:
with:
submodules: true
lfs: false
- name: Build And Deploy

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '16' # Ensure you use the appropriate version for your project

- name: Install dependencies
run: npm install
working-directory: ./src/client/CookingAppReact

- name: Build the app with environment variables
run: |
echo "VITE_PUBLIC_PERSONAL_IP=$VITE_PUBLIC_PERSONAL_IP" > .env.production
echo "VITE_PUBLIC_CLIENT_ID=$VITE_PUBLIC_CLIENT_ID" >> .env.production
echo "VITE_PUBLIC_INSTANCE=$VITE_PUBLIC_INSTANCE" >> .env.production
echo "VITE_PUBLIC_SCOPES=$VITE_PUBLIC_SCOPES" >> .env.production
echo "VITE_STRIPE_PUBLISHABLE_KEY=$VITE_STRIPE_PUBLISHABLE_KEY" >> .env.production
npm run build
working-directory: ./src/client/CookingAppReact
env:
VITE_PUBLIC_PERSONAL_IP: ${{ secrets.VITE_PUBLIC_PERSONAL_IP }}
VITE_PUBLIC_CLIENT_ID: ${{ secrets.VITE_PUBLIC_CLIENT_ID }}
VITE_PUBLIC_INSTANCE: ${{ secrets.VITE_PUBLIC_INSTANCE }}
VITE_PUBLIC_SCOPES: ${{ secrets.VITE_PUBLIC_SCOPES }}
VITE_STRIPE_PUBLISHABLE_KEY: ${{ secrets.VITE_STRIPE_PUBLISHABLE_KEY }}

- name: Deploy to Azure Static Web Apps
id: builddeploy
uses: Azure/static-web-apps-deploy@v1
with:
Expand Down

0 comments on commit 529f463

Please sign in to comment.