Compare commits

..

5 Commits

Author SHA1 Message Date
9e4baa17b8 build workflow
Some checks failed
Build Hugo Site / build (push) Has been cancelled
2025-11-10 01:37:08 -03:00
e14365b9a1 ignore more stuff from hugo 2025-11-10 01:35:46 -03:00
35cda0bdca create a first post 2025-11-10 01:34:50 -03:00
4e86bd5e6b ignore build lock 2025-11-10 01:34:45 -03:00
ac34107e23 add theme 2025-11-10 01:34:03 -03:00
6 changed files with 45 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
name: Build Hugo Site
on:
push:
branches:
- main
jobs:
build:
runs-on: docker
container:
image: klakegg/hugo:ext-alpine
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: hugo --minify
- name: Deploy
run: |
apk add --no-cache rsync openssh
mkdir -p ~/.ssh
echo "$SSH_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" public/ ${SSH_USER}@${SSH_HOST}:${DEPLOY_PATH}
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
SSH_USER: ${{ secrets.SSH_USER }}
SSH_HOST: ${{ secrets.SSH_HOST }}
DEPLOY_PATH: ${{ secrets.DEPLOY_PATH }}

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
.hugo_build.lock
/public/
/resources/

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "themes/PaperMod"]
path = themes/PaperMod
url = https://github.com/adityatelange/hugo-PaperMod

View File

@@ -0,0 +1,5 @@
+++
date = '2025-11-10T01:34:11-03:00'
draft = true
title = 'Hello'
+++

View File

@@ -1,3 +1,4 @@
baseURL = 'https://example.org/'
languageCode = 'en-us'
title = 'My New Hugo Site'
theme = "PaperMod"

1
themes/PaperMod Submodule

Submodule themes/PaperMod added at 1cf53273c3