This commit is contained in:
parent
5743477c5b
commit
bc58097fce
1 changed files with 27 additions and 0 deletions
27
.forgejo/workflows/build.yaml
Normal file
27
.forgejo/workflows/build.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
env:
|
||||||
|
hugo_version: "0.133.1"
|
||||||
|
hugo_destination: "public"
|
||||||
|
steps:
|
||||||
|
- name: Download Hugo
|
||||||
|
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
|
||||||
|
- name: Build Hugo site
|
||||||
|
run: hugo -d ${hugo_destination}
|
||||||
|
- name: Create tarball
|
||||||
|
run: tar zcf /tmp/html.tar.gz ${hugo_destination}
|
||||||
|
- name: Upload tarball
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: html.tar.gz
|
||||||
|
path: /tmp/html.tar.gz
|
Loading…
Reference in a new issue