5 Static Websites Deployment Options

5 Static Websites Deployment Options

5 static websites deployment options: Deploying to GitHub Pages; Deploying to Netlify; Deploying to Docker Hub; Deploying to Public Cloud (Azure); Deploying to Surge. We will look at different ways of deploying a sample static website using automated CI/CD pipelines and different hosting providers.

Static websites have become a mainstream content delivery medium consumed by modern browsers. In this blog, we will look at different ways of deploying a sample static website using automated CI/CD pipelines and different hosting providers.

To make a bit more interesting, the sample website is designed using Blazor and compiled using Web Assembly with PWA option on. This shows that not only simple websites can be delivered as static content but also potentially complex web apps benefit from this delivery mechanism.


If you want to follow along you can check out my git repository with GitHub actions and Docker Hub with deployment scripts.

All builds and deployments are automated and triggered based on commit to master branch of a GitHub repository. For deployment to Netlify and Surge you will need to create accounts in both hosting providers and use GitHub actions templating feature to substitute variables in deployment manifests with content from Secrets. To access and setup secrets go to Project Settings page and find Secrets tab.

Image for post

GitHub Secrets Management in a Project


My motivation to write this blog was to present different deployment options for static content and introducing the topic of modern content delivery mechanism available for free.

Every build and deployment is fully automated and takes advantage of the “pipelines as code” concept where each step within the CI/CD pipeline is represented as section of a yaml file. This file can be checked into a repository alongside your source code and versioned and maintained as one of the artifacts.

Let’s look at different deployment options in more detail. Each option has a corresponding yaml file details steps needed to build and deploy the site.

  1. Deploying to GitHub Pages
  2. Deploying to Netlify
  3. Deploying to Docker Hub
  4. Deploying to Public Cloud (Azure)
  5. Deploying to Surge

azure netlify pwa github web-development

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Top PWA Development Companies 2020 – TopDevelopers.co

Find the best PWA App Developers, to choose from a well-researched list of top PWA development companies and help you to develop Progressive Web Apps for your business.

Why Web Development is Important for your Business

With the rapid development in technology, the old ways to do business have changed completely. A lot more advanced and developed ways are ...

Important Reasons to Hire a Professional Web Development Company

    You name the business and I will tell you how web development can help you promote your business. If it is a startup or you seeking some...

Hire Dedicated eCommerce Web Developers | Top eCommerce Web Designers

Build your eCommerce project by hiring our expert eCommerce Website developers. Our Dedicated Web Designers develop powerful & robust website in a short span of time.

How long does it take to develop/build an app?

This article covers A-Z about the mobile and web app development process and answers your question on how long does it take to develop/build an app.