Using GitHub Actions to deploy Static Sites generated with Swift and Publish

By the end of this tutorial, you will be able to use Github Actions to build and deploy a static website generated with Swift on Github Pages.

Using GitHub Actions to deploy Static Sites generated with Swift and Publish

Following Moritz's previous article about publishing static websites generated in Swift with Gitlab CI/CD, this is about the automation and publication of static websites with GitHub CI/CD instead.

We have already described the benefits of creating static sites using Publish, a static site generator for Swift developers, by John Sundell in "Static Site Generation with Swift using Publish, Plot, and Ink". In this article, we will see how to deploy the static site using GitHub Action and how we can host that with GitHub Pages.

Let's go. Become a free member or log in to proceed.