Add .github/workflows/main.yml

This commit is contained in:
the1mason 2024-02-07 14:30:05 +00:00
parent 0ea40393aa
commit 1673a75953
1 changed files with 28 additions and 0 deletions

28
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Build and Publish Artifact
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
hugo-version: '0.79.1'
- name: Build
run: hugo --minify
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: website
path: public/