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

Create a Scalable Test Suite with Dataset Management in Amazon Bedrock AgentCore

Optimizing Agent Performance: The Role of Versioned Datasets in...

Expedia Unveils ChatGPT-Enhanced Travel Planning: Here’s How to Get Started.

Revolutionizing Travel: Expedia Integrates ChatGPT for Personalized Trip Planning Let...

2 Leading AI Robotics Stocks to Consider Over Tesla

Exploring Robotics Stocks: Two Promising Alternatives to Tesla The Evolution...

Centre Introduces AI Voice Chatbot for Addressing Grievances

Launch of Samadhan Didi: AI Chatbot to Empower Citizens...

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,...

Create a Scalable Test Suite with Dataset Management in Amazon Bedrock...

Optimizing Agent Performance: The Role of Versioned Datasets in Agent Evaluation Introduction to Agent Evaluation The Importance of Stable Inputs and Ground Truth Workflow: An Example with...

Enhance Access to Amazon SageMaker MLflow with a REST API Proxy

Building a Secure Flask Proxy Service for Amazon SageMaker MLflow This guide explores how to create a secure Flask-based proxy service that facilitates HTTPS access...

Create a Tailored Portal Featuring Embedded Amazon SageMaker AI and MLflow...

Scalable Access Management for MLflow with Amazon SageMaker: A Custom Portal Solution Introduction to Efficient Access Management for ML Teams Solution Overview: Building a Custom Portal Architecture...