From cf33b376ff55775072de1db6d53eaf89c7e0f6b4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=EC=9E=A5=EB=AA=85=ED=98=84?= <gabang002@gmail.com>
Date: Wed, 2 Apr 2025 13:51:44 +0900
Subject: [PATCH] revise ci pipeline

---
 .gitlab-ci.yml | 17 +++++++++++++++++
 ex1.md         | 29 -----------------------------
 2 files changed, 17 insertions(+), 29 deletions(-)
 delete mode 100644 ex1.md

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eb04588..9e3a4a3 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,3 +1,9 @@
+workflow:
+  rules:
+    - if: '$CI_COMMIT_MESSAGE =~ /skip-ci-pdf/'
+      when: never
+    - when: always
+
 stages:
   - convert
 
@@ -13,6 +19,17 @@ convert_modified_md:
         echo "변환 중: $file"
         python MDtoPDF.py "$file"
       done
+    - git config --global user.email "gabang002@gmail.com"
+    - git config --global user.name "장명현"
+    - git checkout "$CI_COMMIT_BRANCH"
+    - git add *.pdf *.html
+    - |
+      if ! git diff --cached --quiet; then
+        git commit -m "auto-generate HTML/PDF [skip-ci-pdf]"
+        git push "https://$CI_PUSH_USER:$CI_PUSH_TOKEN@gitlab.com/$CI_PROJECT_PATH.git"
+      else
+        echo "변경사항 없음, 커밋 생략"
+      fi
   artifacts:
     paths:
       - "*.pdf"
diff --git a/ex1.md b/ex1.md
deleted file mode 100644
index fbec745..0000000
--- a/ex1.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# ✨ My Awesome Project
-
-Welcome to **My Awesome Project** – a small but powerful app that helps you stay focused and get things done.
-
----
-
-## 🚀 Features
-
-- ✅ Minimal UI, maximum productivity
-- 🕒 Pomodoro Timer built-in
-- ☁️ Cloud sync support (via Firebase)
-- 🎨 Custom themes (Light/Dark/Colorful)
-- 📈 Analytics to track focus trends
-
----
-
-## 📸 Screenshot
-
-![App Screenshot](https://via.placeholder.com/600x300.png?text=Your+App+Screenshot)
-
----
-
-## 🔧 Technologies Used
-
-```bash
-Frontend:   React + TypeScript
-Backend:    Firebase Functions
-Styling:    Tailwind CSS
-State:      Redux Toolkit
-- 
GitLab