Skip to content

Commit 0b8fc56

Browse files
committed
Fix(deploy): Avoid resetting CNAME file
1 parent 85ebe64 commit 0b8fc56

2 files changed

Lines changed: 1 addition & 17 deletions

File tree

.github/workflows/deploy.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ jobs:
3434
github_token: ${{ secrets.GITHUB_TOKEN }}
3535
publish_dir: ./build
3636
publish_branch: gh-pages
37+
cname: codeclash.ai
3738
commit_message: "Deploy website to GitHub Pages"
3839
force_orphan: true # This ensures a clean history with only the built files

Makefile

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,3 @@ preview:
77

88
build:
99
python $(server) build
10-
11-
# usage: make push m="commit message"
12-
push:
13-
git add -A && \
14-
git commit -m "$(m)" && \
15-
git push origin main
16-
17-
# usage: make deploy m="commit message"
18-
deploy:
19-
python $(server) build && \
20-
cd ../deploy && \
21-
git pull origin main && \
22-
cp -r ../$(build_dir)/build/* . && \
23-
cp -r ../$(build_dir)/.gitignore . && \
24-
git add -A && \
25-
git commit -m 'deploy: $(m)' && \
26-
git push origin main

0 commit comments

Comments
 (0)