2023-08-16 13:54:59 +02:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Setup Hugo
|
|
|
|
uses: https://github.com/peaceiris/actions-hugo.git@v2
|
|
|
|
with:
|
|
|
|
hugo-version: 'latest'
|
|
|
|
extended: true
|
|
|
|
|
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
npm i
|
|
|
|
hugo --minify
|
|
|
|
|
2023-09-09 12:23:12 +02:00
|
|
|
- name: Setup Go
|
|
|
|
uses: actions/setup-go@v3
|
|
|
|
with:
|
|
|
|
go-version: "1.21"
|
|
|
|
|
2023-08-16 13:54:59 +02:00
|
|
|
- name: Deploy
|
2023-09-09 12:23:12 +02:00
|
|
|
uses: https://itsblue.dev/actions/codeberg-pages-deploy@v1
|
2023-08-16 13:54:59 +02:00
|
|
|
with:
|
2023-09-09 12:23:12 +02:00
|
|
|
folder: ./public
|