From 351adce92ae8d636e53fba12d6369a9ef4cd29a7 Mon Sep 17 00:00:00 2001 From: bvanroll Date: Fri, 25 Apr 2025 23:34:47 +0200 Subject: [PATCH] ok, zo is beter mss --- .github/workflows/neocities.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/neocities.yml b/.github/workflows/neocities.yml index c1f5a70..54d754d 100644 --- a/.github/workflows/neocities.yml +++ b/.github/workflows/neocities.yml @@ -49,6 +49,7 @@ jobs: needs: [ setup, build ] runs-on: ubuntu-latest steps: + - run: npm i markdown-to-html-cli -g - uses: actions/checkout@v4 - name: finish posts.html env: @@ -56,6 +57,17 @@ jobs: run: | cd ${{github.workspace}} ./genhtml.sh > public/posts.html + - run: | + cd ${{github.workspace}} + for entry in notes/* + do + filename=$(basename "$entry" .md) + timestamp=`git log --format=%ad --date=format:'%Y-%m-%d' -- $entry` + dest="public/posts/$timestamp" + dest+="_$filename" + dest+=".html" + markdown-to-html --source $entry --output $dest + done - name: Deploy to neocities uses: bcomnes/deploy-to-neocities@v1 with: