
Automating Deployment with GitHub Actions
Automating `semantic` Releases with GitHub Actions
Β· Build
To deploy your forked version of semantic
, you'll need a server β whether that's your local machine, an EC2 instance, or a cloud platform like Vercel
or Netlify
.
However, since semantic
is built entirely with Static Site Generation (SSG)
, deploying via GitHub Pages
is not only possible β it's a great fit.
Overview
The semantic
project includes a preconfigured GitHub Actions workflow:
.github/workflows/deploy.yml
This workflow is triggered automatically whenever a commit is pushed to the main
branch. It builds the project and pushes the output (out
directory) to the deploy
branch.
This makes deploy
a dedicated branch for hosting build artifacts β perfect for GitHub Pages.
Publishing to GitHub Pages
Now letβs connect the deploy
branch to GitHub Pages.
-
Go to Settings β Pages in your repository.
-
Under Build and deployment:
- Source: SelectDeploy from a branch
- Branch: Choose thedeploy
branch -
Click Save.
Wait for the GitHub Actions deployment to finish β and your blog will be live!
Need help? Open an issue and we'll be happy to assist you.