36 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			1.1 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
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/
 | 
						|
```
 | 
						|
 | 
						|

 |