Compare commits
5 Commits
0911bc5f17
...
9e4baa17b8
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e4baa17b8 | |||
| e14365b9a1 | |||
| 35cda0bdca | |||
| 4e86bd5e6b | |||
| ac34107e23 |
32
.gitea/workflows/build.yml
Normal file
32
.gitea/workflows/build.yml
Normal 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
3
.gitignore
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
.hugo_build.lock
|
||||
/public/
|
||||
/resources/
|
||||
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
[submodule "themes/PaperMod"]
|
||||
path = themes/PaperMod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod
|
||||
5
content/en/posts/hello.md
Normal file
5
content/en/posts/hello.md
Normal file
@@ -0,0 +1,5 @@
|
||||
+++
|
||||
date = '2025-11-10T01:34:11-03:00'
|
||||
draft = true
|
||||
title = 'Hello'
|
||||
+++
|
||||
@@ -1,3 +1,4 @@
|
||||
baseURL = 'https://example.org/'
|
||||
languageCode = 'en-us'
|
||||
title = 'My New Hugo Site'
|
||||
theme = "PaperMod"
|
||||
|
||||
1
themes/PaperMod
Submodule
1
themes/PaperMod
Submodule
Submodule themes/PaperMod added at 1cf53273c3
Reference in New Issue
Block a user