This is an automated email from the ASF dual-hosted git repository.

apratim pushed a commit to branch test-ci
in repository https://gitbox.apache.org/repos/asf/incubator-resilientdb-blog.git

commit dc351ce341fc56684fc9d843689b0d69a6d2b45e
Author: Apratim Shukla <[email protected]>
AuthorDate: Mon Oct 28 12:16:16 2024 -0700

    Create config.yml
---
 .circleci/config.yml | 40 ++++++++++++++++++++++++++++++++++++++++
 1 file changed, 40 insertions(+)

diff --git a/.circleci/config.yml b/.circleci/config.yml
new file mode 100644
index 0000000..b2d791f
--- /dev/null
+++ b/.circleci/config.yml
@@ -0,0 +1,40 @@
+version: 2.1
+
+jobs:
+  build-and-deploy-jekyll:
+    docker:
+      - image: jekyll/builder:latest
+    steps:
+      - checkout
+      - run:
+          name: Install dependencies
+          command: |
+            bundle install
+      - run:
+          name: Build Jekyll site
+          command: |
+            JEKYLL_ENV=production bundle exec jekyll build -d _site
+      - run:
+          name: Clone asf-site branch
+          command: |
+            git clone --branch asf-site 
https://github.com/apache/incubator-resilientdb-site.git asf-site
+      - run:
+          name: Move blog to /blog
+          command: |
+            rm -rf asf-site/blog
+            mv _site asf-site/blog
+      - run:
+          name: Push changes to asf-site branch
+          command: |
+            cd asf-site
+            git config --global user.email "[email protected]"
+            git config --global user.name "Apratim Shukla"
+            git add blog
+            git commit -m "Automated Jekyll blog update"
+            git push origin asf-site
+
+workflows:
+  version: 2
+  deploy:
+    jobs:
+      - build-and-deploy-jekyll
\ No newline at end of file

Reply via email to