Add workflow

This commit is contained in:
Anton Roslund
2025-02-16 19:35:28 +01:00
parent 5710a58eb6
commit a4d7ec5d23
6 changed files with 67 additions and 8 deletions
+29
View File
@@ -0,0 +1,29 @@
name: Deploy Hugo site
on:
push:
branches:
- main # Deploy when changes are pushed to "main"
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Install Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 'latest'
- name: Build the site
run: hugo --minify
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public