Add build workflow
Some checks failed
/ build (push) Failing after 33s

This commit is contained in:
Correl Roush 2024-08-26 15:23:07 +00:00
parent 5743477c5b
commit dd1882b89d

View file

@ -0,0 +1,21 @@
on:
push:
branches:
- main
jobs:
build:
runs-on: docker
env:
hugo_version: "0.133.1"
hugo_destination: "public"
steps:
- working-directory: /tmp
run: |
wget https://github.com/gohugoio/hugo/releases/download/v${hugo_version}/hugo_extended_${hugo_version}_Linux-64bit.tar.gz
tar zxf hugo_extended_${hugo_version}_Linux-64bit.tar.gz
mv hugo /usr/local/bin/hugo
- uses: actions/checkout@v4
- run: hugo -d ${hugo_destination}
- run: tar zcf /tmp/html.tar.gz ${hugo_destination}
- uses: actions/upload-artifact@v4
path: /tmp/html.tar.gz