Add CI
Some checks failed
Build and Release Site / builder (push) Successful in 3m2s
Build and Release Site / release (push) Failing after 19s

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-09-14 17:39:52 +01:00
parent 74873651a8
commit 3ce8d6efd3
2 changed files with 49 additions and 0 deletions

3
.gitea/Containerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM ghcr.io/catthehacker/ubuntu:act-latest
RUN apt-get update && apt-get install -y hugo

View File

@@ -0,0 +1,46 @@
name: Build and Release Site
on:
push:
branches:
- "**"
jobs:
builder:
uses: karaolidis/workflows/.gitea/workflows/builder.yaml@main
with:
registry: git.karaolidis.com
username: ${{ github.repository_owner }}
secrets:
password: ${{ secrets.REGISTRY_PASSWORD }}
release:
runs-on: nix
needs: builder
container:
image: ${{ needs.builder.outputs.tag }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build Site
run: |
cd themes/caldwell
npm install
cd ../..
ln -s ./themes/caldwell/node_modules node_modules
pwd
hugo --minify
- name: Package
run: |
tar -czf site.tar.gz -C public .
- name: Release
uses: https://github.com/akkuman/gitea-release-action@main
with:
name: "Release ${{ github.sha }}"
tag_name: "release-${{ github.sha }}"
files: site.tar.gz