Skip to content

Commit 6aa1710

Browse files
Update main.yml
1 parent bc813a2 commit 6aa1710

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ jobs:
3131
run: |
3232
hugo --source ./blog --destination ./blog-output --minify --baseURL "https://aravind-govindhasamy.github.io/my-blog/"
3333
34-
# 3️⃣ Prepare combined deployment
3534
- name: Prepare gh-pages directory
3635
run: |
37-
mkdir gh-pages-temp
38-
cp -r !(.git|blog|blog-output|.github|README.md) gh-pages-temp/ # copy portfolio files
36+
mkdir -p gh-pages-temp
37+
cp -r index.html about.html contact.html gh-pages-temp/
38+
# Add any other portfolio files/folders here
3939
mkdir -p gh-pages-temp/my-blog
40-
cp -r blog-output/* gh-pages-temp/my-blog/ # copy Hugo output
40+
cp -r blog-output/* gh-pages-temp/my-blog/
41+
42+
4143
4244
# 4️⃣ Deploy to GitHub Pages
4345
- name: Deploy to GitHub Pages

0 commit comments

Comments
 (0)