Skip to content

Commit

Permalink
👷 Add build
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV committed Nov 9, 2024
1 parent 96decc3 commit bab872f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
Empty file added .github/.gitkeep
Empty file.
28 changes: 28 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy Hugo Site to GitHub Pages

on:
push:
branches:
- main

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 Hugo Site
run: hugo --minify # Use `hugo --minify` for production build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

0 comments on commit bab872f

Please sign in to comment.