Exclusive Content:

Haiper steps out of stealth mode, secures $13.8 million seed funding for video-generative AI

Haiper Emerges from Stealth Mode with $13.8 Million Seed...

Running Your ML Notebook on Databricks: A Step-by-Step Guide

A Step-by-Step Guide to Hosting Machine Learning Notebooks in...

“Revealing Weak Infosec Practices that Open the Door for Cyber Criminals in Your Organization” • The Register

Warning: Stolen ChatGPT Credentials a Hot Commodity on the...

Pelican and GitHub Pages collaboration

Streamlining Deployment with Pelican and GitHub Pages

As a blogger who uses Pelican and GitHub Pages to power and host my blog, I’ve found a workflow that works well for me when deploying new posts. In this post, I’ll share that workflow with you.

Pelican is a static site generator that automatically generates HTML files from content written in Markdown. GitHub Pages, on the other hand, is a service provided by GitHub for hosting websites under a .github.io URL.

While using Pelican and GitHub Pages is straightforward, there is a small issue that arises. GitHub Pages assumes that the root folder of the master branch is the folder that should be served to the world. However, Pelican’s default settings output the generated website files to an output folder. This discrepancy can be solved by either using two separate repositories for source and output files or by using branches and git hooks.

Personally, I prefer to keep everything in one place, so I use branches and git hooks to manage my blog deployment. I create two branches in my GitHub Pages repository – one for the source files (e.g., content folder and pelicanconf.py) and one for the output contents. This allows me to keep all my blog-related files in one repository.

To automate the process of updating the master branch with the new contents of the output folder whenever I push a commit to the source branch, I use a pre-push git hook. This custom script executes the necessary commands to update the master branch with the latest version of the website’s production files.

By utilizing git hooks and branches, I can easily manage the deployment of new blog posts without the need for separate repositories. This streamlined workflow allows me to focus on creating content and updating my blog without getting bogged down by manual deployment tasks.

Overall, using Pelican and GitHub Pages in conjunction with branches and git hooks has made managing my blog deployment process much more efficient. If you’re looking for a simple and effective way to deploy your blog posts, I highly recommend giving this workflow a try.

Latest

Creating a Personal Productivity Assistant Using GLM-5

From Idea to Reality: Building a Personal Productivity Agent...

Lawsuits Claim ChatGPT Contributed to Suicide and Psychosis

The Dark Side of AI: ChatGPT's Alleged Role in...

Japan’s Robotics Sector Hits Record Orders Amid Growing Global Labor Shortages

Japan's Robotics Boom: Navigating Labor Shortages and Global Competition Add...

Analysis of Major Market Segments Fueling the Digital Language Sector

Exploring the Rapid Growth of the Digital Language Learning...

Don't miss

Haiper steps out of stealth mode, secures $13.8 million seed funding for video-generative AI

Haiper Emerges from Stealth Mode with $13.8 Million Seed...

Running Your ML Notebook on Databricks: A Step-by-Step Guide

A Step-by-Step Guide to Hosting Machine Learning Notebooks in...

VOXI UK Launches First AI Chatbot to Support Customers

VOXI Launches AI Chatbot to Revolutionize Customer Services in...

Investing in digital infrastructure key to realizing generative AI’s potential for driving economic growth | articles

Challenges Hindering the Widescale Deployment of Generative AI: Legal,...

Creating a Personal Productivity Assistant Using GLM-5

From Idea to Reality: Building a Personal Productivity Agent in Just Five Minutes with GLM-5 AI A Revolutionary Approach to Application Development This headline captures the...

Creating Smart Event Agents with Amazon Bedrock AgentCore and Knowledge Bases

Deploying a Production-Ready Event Assistant Using Amazon Bedrock AgentCore Transforming Conference Navigation with AI Introduction to Event Assistance Challenges Building an Intelligent Companion with Amazon Bedrock AgentCore Solution...

A Comprehensive Guide to Machine Learning for Time Series Analysis

Mastering Feature Engineering for Time Series: A Comprehensive Guide Understanding Feature Engineering in Time Series Data The Essential Role of Lag Features in Time Series Analysis Unpacking...