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

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

VOXI UK Launches First AI Chatbot to Support Customers

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

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

OpenAI: Integrate Third-Party Apps Like Spotify and Canva Within ChatGPT

OpenAI Unveils Ambitious Plans to Transform ChatGPT into a...

Generative Tensions: An AI Discussion

Exploring the Intersection of AI and Society: A Conversation...

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

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

Microsoft launches new AI tool to assist finance teams with generative tasks

Microsoft Launches AI Copilot for Finance Teams in Microsoft...

Tailoring Text Content Moderation Using Amazon Nova

Enhancing Content Moderation with Customized AI Solutions: A Guide to Amazon Nova on SageMaker Understanding the Challenges of Content Moderation at Scale Key Advantages of Nova...

Building a Secure MLOps Platform Using Terraform and GitHub

Implementing a Robust MLOps Platform with Terraform and GitHub Actions Introduction to MLOps Understanding the Role of Machine Learning Operations in Production Solution Overview Building a Comprehensive MLOps...

Automate Monitoring for Batch Inference in Amazon Bedrock

Harnessing Amazon Bedrock for Batch Inference: A Comprehensive Guide to Automated Monitoring and Product Recommendations Overview of Amazon Bedrock and Batch Inference Implementing Automated Monitoring Solutions Deployment...