Skip to content

Commit 02e38e9

Browse files
committed
comment out workflow for now
1 parent 026aac2 commit 02e38e9

File tree

1 file changed

+52
-52
lines changed

1 file changed

+52
-52
lines changed

.github/workflows/deploy.yml

Lines changed: 52 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,70 @@
1-
# .github/workflows/deploy.yml
1+
# # .github/workflows/deploy.yml
22

3-
name: Deploy React App to GitHub Pages
3+
# name: Deploy React App to GitHub Pages
44

5-
on:
6-
push:
7-
branches:
8-
- main # Trigger deployment on push to main branch
5+
# on:
6+
# push:
7+
# branches:
8+
# - main # Trigger deployment on push to main branch
99

10-
jobs:
11-
build-and-deploy:
12-
runs-on: ubuntu-latest
10+
# jobs:
11+
# build-and-deploy:
12+
# runs-on: ubuntu-latest
1313

14-
steps:
15-
# 1. Checkout the repository
16-
- name: Checkout repository
17-
uses: actions/checkout@v3
14+
# steps:
15+
# # 1. Checkout the repository
16+
# - name: Checkout repository
17+
# uses: actions/checkout@v3
1818

19-
# 2. Setup Node.js environment
20-
- name: Setup Node.js
21-
uses: actions/setup-node@v3
22-
with:
23-
node-version: "16" # Specify Node.js version
19+
# # 2. Setup Node.js environment
20+
# - name: Setup Node.js
21+
# uses: actions/setup-node@v3
22+
# with:
23+
# node-version: "16" # Specify Node.js version
2424

25-
# 3. Install project dependencies
26-
- name: Install dependencies
27-
run: npm install
25+
# # 3. Install project dependencies
26+
# - name: Install dependencies
27+
# run: npm install
2828

29-
# 4. Build the React app
30-
- name: Build React app
31-
run: npm run build
29+
# # 4. Build the React app
30+
# - name: Build React app
31+
# run: npm run build
3232

33-
# 5. Deploy to GitHub Pages using PAT and git commands
34-
- name: Deploy to GitHub Pages
35-
env:
36-
DEPLOY_TOKEN: ${{ secrets.WEBSITE_TOKEN }} # Use PAT stored as DEPLOY_TOKEN
37-
run: |
38-
set -x
39-
git config --global user.name "jonhealy1"
40-
git config --global user.email "[email protected]"
33+
# # 5. Deploy to GitHub Pages using PAT and git commands
34+
# - name: Deploy to GitHub Pages
35+
# env:
36+
# DEPLOY_TOKEN: ${{ secrets.WEBSITE_TOKEN }} # Use PAT stored as DEPLOY_TOKEN
37+
# run: |
38+
# set -x
39+
# git config --global user.name "jonhealy1"
40+
# git config --global user.email "[email protected]"
4141

42-
# Remove existing deploy remote if it exists to avoid conflicts
43-
git remote remove deploy || true
42+
# # Remove existing deploy remote if it exists to avoid conflicts
43+
# git remote remove deploy || true
4444

45-
# Add deploy remote using PAT for authentication
46-
git remote add deploy https://x-access-token:${DEPLOY_TOKEN}@github.com/stacchain/stacchain.github.io.git
45+
# # Add deploy remote using PAT for authentication
46+
# git remote add deploy https://x-access-token:${DEPLOY_TOKEN}@github.com/stacchain/stacchain.github.io.git
4747

48-
# Verify remote URLs
49-
git remote -v
48+
# # Verify remote URLs
49+
# git remote -v
5050

51-
# Fetch the deploy branch
52-
git fetch deploy
51+
# # Fetch the deploy branch
52+
# git fetch deploy
5353

54-
# Checkout to deploy/main or create an orphan branch if it doesn't exist
55-
git checkout deploy/main || git checkout --orphan deploy/main
54+
# # Checkout to deploy/main or create an orphan branch if it doesn't exist
55+
# git checkout deploy/main || git checkout --orphan deploy/main
5656

57-
# Remove all existing files
58-
git rm -rf .
57+
# # Remove all existing files
58+
# git rm -rf .
5959

60-
# Copy build files to the repository root
61-
cp -R build/* .
60+
# # Copy build files to the repository root
61+
# cp -R build/* .
6262

63-
# Add all changes
64-
git add .
63+
# # Add all changes
64+
# git add .
6565

66-
# Commit changes
67-
git commit -m "Deploy React app to GitHub Pages [skip ci]"
66+
# # Commit changes
67+
# git commit -m "Deploy React app to GitHub Pages [skip ci]"
6868

69-
# Push changes to deploy/main with force
70-
git push deploy deploy/main --force
69+
# # Push changes to deploy/main with force
70+
# git push deploy deploy/main --force

0 commit comments

Comments
 (0)