Skip to content

Commit

Permalink
hugi
Browse files Browse the repository at this point in the history
  • Loading branch information
dhlorenz committed May 17, 2024
1 parent a182ea2 commit 5a28981
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and Deploy

on:
push:
branches:
- master # Change this to the branch you want to trigger the workflow on

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: 'latest'

- name: Build Site
run: hugo --minify

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages # Change this to the branch you want to deploy to

0 comments on commit 5a28981

Please sign in to comment.