Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zelal-dev committed Oct 25, 2024
1 parent 07fc13f commit 1eda174
Showing 1 changed file with 61 additions and 61 deletions.
122 changes: 61 additions & 61 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,61 +1,61 @@
name: Padma CI

on:
push:
branches:
- dev # Adjust according to your branch
pull_request:
branches:
- dev # Adjust according to your branch

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "20"

- name: Install pnpm
run: |
npm install -g pnpm
- name: Install Dependencies
run: pnpm install

- name: Build Backend
run: pnpm -F @padma/backend build

- name: Install Blank Theme
run: pnpm -F @padma/blank-theme build

- name: Build Frontend
run: pnpm -F @padma/frontend build
env:
NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} # Your Vercel URL
NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }} # Localhost or staging URL
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: ${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY }} # Google Maps API key
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY }} # Stripe API key
STRAPI_AUTH_TOKEN: ${{ secrets.STRAPI_AUTH_TOKEN }} # Strapi auth token
STRAPI_ENDPOINT: ${{ secrets.STRAPI_ENDPOINT }} # Strapi production URL

- name: Deploy Backend
run: |
echo "Deploying backend..."
# Add your backend deployment commands here
env:
# Add environment variables needed for deployment
NODE_ENV: development
# Add other necessary secrets here

- name: Deploy Frontend
run: |
echo "Deploying frontend..."
# Add your frontend deployment commands here
env:
NODE_ENV: development
# Add other necessary secrets here
# name: Padma CI

# on:
# push:
# branches:
# - dev # Adjust according to your branch
# pull_request:
# branches:
# - dev # Adjust according to your branch

# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout Code
# uses: actions/checkout@v2

# - name: Setup Node.js
# uses: actions/setup-node@v2
# with:
# node-version: "20"

# - name: Install pnpm
# run: |
# npm install -g pnpm

# - name: Install Dependencies
# run: pnpm install

# - name: Build Backend
# run: pnpm -F @padma/backend build

# - name: Install Blank Theme
# run: pnpm -F @padma/blank-theme build

# - name: Build Frontend
# run: pnpm -F @padma/frontend build
# env:
# NEXTAUTH_URL: ${{ secrets.NEXTAUTH_URL }} # Your Vercel URL
# NEXT_PUBLIC_BASE_URL: ${{ secrets.NEXT_PUBLIC_BASE_URL }} # Localhost or staging URL
# NEXT_PUBLIC_GOOGLE_MAPS_API_KEY: ${{ secrets.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY }} # Google Maps API key
# NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY }} # Stripe API key
# STRAPI_AUTH_TOKEN: ${{ secrets.STRAPI_AUTH_TOKEN }} # Strapi auth token
# STRAPI_ENDPOINT: ${{ secrets.STRAPI_ENDPOINT }} # Strapi production URL

# - name: Deploy Backend
# run: |
# echo "Deploying backend..."
# # Add your backend deployment commands here
# env:
# # Add environment variables needed for deployment
# NODE_ENV: development
# # Add other necessary secrets here

# - name: Deploy Frontend
# run: |
# echo "Deploying frontend..."
# # Add your frontend deployment commands here
# env:
# NODE_ENV: development
# # Add other necessary secrets here

0 comments on commit 1eda174

Please sign in to comment.