Create blog “2024-12-24-automatic-rebuilding”
This commit is contained in:
parent
717af8f961
commit
3ad88d085e
2 changed files with 36 additions and 0 deletions
36
content/blog/2024-12-24-automatic-rebuilding.md
Normal file
36
content/blog/2024-12-24-automatic-rebuilding.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
---
|
||||
date: 2024-12-24T11:38:00.000Z
|
||||
title: automatic rebuilding
|
||||
description: this page was built with forgejo, yo
|
||||
tags:
|
||||
- my-blog
|
||||
- programming
|
||||
---
|
||||
this page was built with [forgejo](https://forgejo.org/), yo!
|
||||
|
||||
I installed a git forge on my own server so I can upload whatever I want, including nsfw stuff if I feel like it, and I wrote this build script that automatically rebuilds the page whenever I push changes.
|
||||
|
||||
And I'm currently editing this page in [Decap CMS](https://decapcms.org/), which automatically pushes changes to a git forge.
|
||||
|
||||
So I have a fully visual post editor now!
|
||||
|
||||
```yaml
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: self-hosted
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: mkdir -p /data/nycki.net/site
|
||||
- run: cp site.conf /data/nycki.net/site.conf
|
||||
- run: cp -r _site/* /home/nycki/nycki.net/patches/* /data/nycki.net/site/
|
||||
```
|
||||
|
||||
![screenshot of the editor used to write this post](/a/decap-cms.jpg "screenshot of the editor used to write this post")
|
BIN
public/a/decap-cms.jpg
Normal file
BIN
public/a/decap-cms.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 200 KiB |
Loading…
Reference in a new issue