diff --git a/content/blog/2024-12-24-automatic-rebuilding.md b/content/blog/2024-12-24-automatic-rebuilding.md new file mode 100644 index 0000000..5571bef --- /dev/null +++ b/content/blog/2024-12-24-automatic-rebuilding.md @@ -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") diff --git a/public/a/decap-cms.jpg b/public/a/decap-cms.jpg new file mode 100644 index 0000000..e323768 Binary files /dev/null and b/public/a/decap-cms.jpg differ