Compare commits

...

3 commits
public ... main

Author SHA1 Message Date
d440267fac
ADD git submodule
Some checks failed
build-to-pages / build (push) Successful in 14s
build-to-pages / push (push) Failing after 7s
2023-11-01 14:52:20 +01:00
afcd47c517
REMOVE theme 2023-11-01 14:50:36 +01:00
124e58c339
ADD hugo with pipline
All checks were successful
build-to-pages / build (push) Successful in 15s
build-to-pages / push (push) Successful in 10s
2023-10-31 14:04:49 +01:00
9 changed files with 106 additions and 1 deletions

View file

@ -0,0 +1,52 @@
name: build-to-pages
on: [push]
branches: [main]
jobs:
build:
runs-on: docker
env:
HUGO_VERSION: 0.115.4
steps:
- name: Install Hugo CLI
run: |
wget -O ${{ runner.temp }}/hugo.deb https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb \
&& dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: npm i -g sass
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build with hugo
env:
# For maximum backward compatibility with Hugo modules
HUGO_ENVIRONMENT: production
HUGO_ENV: production
run: hugo --minify
- name: Zip output
run: apt update && apt install zip -y && zip -r public.zip public/
- uses: actions/upload-artifact@v3
with:
name: hugo-output
path: ./public.zip
if-no-files-found: error
retention-days: 1
push:
runs-on: docker
steps:
- uses: actions/checkout@v4
with:
ref: public
- name: Clean current files in directory
run: rm -rf *
- uses: actions/download-artifact@v3
with:
name: hugo-output
- name: Unzip hugo output
run: apt update && apt install unzip -y && unzip hugo-output/public.zip -d . && shopt -s dotglob && mv ./public/* ./
- name: Publish
run: |
git config user.name "forgejo-actions"
git config user.email ""
git add .
git commit -m "generated"
git push

1
.gitignore vendored
View file

@ -12,4 +12,3 @@ hugo.linux
# Temporary lock file while building
/.hugo_build.lock

3
.gitmodules vendored Normal file
View file

@ -0,0 +1,3 @@
[submodule "themes/gokarna"]
path = themes/gokarna
url = https://github.com/526avijitgupta/gokarna.git

6
archetypes/default.md Normal file
View file

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

26
config.toml Normal file
View file

@ -0,0 +1,26 @@
theme = 'gokarna'
baseURL = 'https://rallex.de/'
languageCode = 'en-us'
title = 'Rallex'
# Automatically generate robots.txt
enableRobotsTXT = true
[menu]
[[menu.main]]
# Unique identifier for a menu item
identifier = "posts"
url = "/posts/"
# You can add extra information before the name (HTML format is supported), such as icons
pre = ""
# You can add extra information after the name (HTML format is supported), such as icons
post = ""
# Display name
name = "Blog"
# Weights are used to determine the ordering
weight = 1

View file

@ -0,0 +1,10 @@
---
title: "First_post"
date: 2023-10-28T22:19:12+02:00
draft: false
type: "post"
---
This is a Test.
Hello World!

3
static/.domains Normal file
View file

@ -0,0 +1,3 @@
rallex.de
www.rallex.de
rallex.nutfactory.page

5
static/.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
# Generated files by hugo
/public/
# Generated files by forgejo actions
/hugo-output/

1
themes/gokarna Submodule

@ -0,0 +1 @@
Subproject commit 5b20557312aad5e45c55dc3fbd58bf4d1bf5872b