Skip to content

Commit 19e2445

Browse files
authored
Disable Staging Deployment workflow temporarily
- Commented out the Staging Deployment workflow to prevent it from running. - Disabled all triggers and jobs in the workflow file. - This is a temporary change and can be re-enabled when staging deployment is needed again.
1 parent 6a93294 commit 19e2445

File tree

1 file changed

+40
-38
lines changed

1 file changed

+40
-38
lines changed
Lines changed: 40 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,42 @@
11
name: Staging Deployment
22

3-
on:
4-
push:
5-
pull_request:
6-
7-
jobs:
8-
build-and-deploy:
9-
name: Build and Deploy to Staging
10-
runs-on: ubuntu-latest
11-
12-
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v3
15-
16-
- name: List root directory contents for debugging
17-
run: ls -R
18-
19-
- name: List client/public directory contents for debugging
20-
run: ls client/public
21-
22-
- name: Set up Node.js
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: '16' # Specify Node.js version
26-
27-
- name: Install dependencies
28-
run: npm install
29-
30-
- name: Build the application
31-
run: npm run build
32-
33-
- name: Deploy to Staging
34-
if: github.event_name == 'push' # Deploy only on direct pushes, not pull requests
35-
env:
36-
STAGING_API_KEY: ${{ secrets.STAGING_API_KEY }}
37-
STAGING_API_URL: ${{ secrets.STAGING_API_URL }}
38-
run: |
39-
# Replace with your deployment command or script
40-
curl -X POST -H "Authorization: Bearer $STAGING_API_KEY" -d "@/dist/index.js" "$STAGING_API_URL"
3+
# Disabled workflow for Staging Deployment
4+
5+
# on:
6+
# push:
7+
# pull_request:
8+
9+
# jobs:
10+
# build-and-deploy:
11+
# name: Build and Deploy to Staging
12+
# runs-on: ubuntu-latest
13+
14+
# steps:
15+
# - name: Checkout code
16+
# uses: actions/checkout@v3
17+
18+
# - name: List root directory contents for debugging
19+
# run: ls -R
20+
21+
# - name: List client/public directory contents for debugging
22+
# run: ls client/public
23+
24+
# - name: Set up Node.js
25+
# uses: actions/setup-node@v3
26+
# with:
27+
# node-version: '16' # Specify Node.js version
28+
29+
# - name: Install dependencies
30+
# run: npm install
31+
32+
# - name: Build the application
33+
# run: npm run build
34+
35+
# - name: Deploy to Staging
36+
# if: github.event_name == 'push' # Deploy only on direct pushes, not pull requests
37+
# env:
38+
# STAGING_API_KEY: ${{ secrets.STAGING_API_KEY }}
39+
# STAGING_API_URL: ${{ secrets.STAGING_API_URL }}
40+
# run: |
41+
# # Replace with your deployment command or script
42+
# curl -X POST -H "Authorization: Bearer $STAGING_API_KEY" -d "@/dist/index.js" "$STAGING_API_URL"

0 commit comments

Comments
 (0)