This commit is contained in:
2025-08-24 00:36:13 +02:00
parent 387127840a
commit be9ede029c
52 changed files with 88 additions and 2072 deletions

View File

@@ -1,51 +1,30 @@
name: Deploy to neocities
name: deploy to neocities
on:
push:
branches:
push:
branches:
- master
env:
FORCE_COLOR: 1
node_version: lts/*
concurrency:
group: deploy-to-neocities
cancel-in-progress: true
jobs:
deploy:
jekyll:
name: Build and deploy Jekyll site
runs-on: ubuntu-latest
steps:
- run: npm i markdown-to-html-cli -g
- uses: actions/checkout@v4
- name: finish posts.html
env:
genhtml: ${{ needs.setup.outputs.genhtml }}
run: |
cd ${{github.workspace}}
./gen_posts.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 --no-dark-mode false --markdown-style-theme light --source $entry --output $dest
done
# - name: gen_pico8
# run: |
# cd ${{github.worpskace}}
# ./gen_games.sh >> public/gaming.html
# echo " </body></html> " >> public/gaming.html
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: public
protected_files: 'dropbox/*'
- name: Checkout
uses: actions/checkout@v2
- name: Build
uses: jerryjvl/jekyll-build-action@v1
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: _site
protected_files: 'dropbox/*'

View File

@@ -0,0 +1,51 @@
name: Deploy to neocities
on:
push:
branches:
- master
env:
FORCE_COLOR: 1
node_version: lts/*
concurrency:
group: deploy-to-neocities
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- run: npm i markdown-to-html-cli -g
- uses: actions/checkout@v4
- name: finish posts.html
env:
genhtml: ${{ needs.setup.outputs.genhtml }}
run: |
cd ${{github.workspace}}
./gen_posts.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 --no-dark-mode false --markdown-style-theme light --source $entry --output $dest
done
# - name: gen_pico8
# run: |
# cd ${{github.worpskace}}
# ./gen_games.sh >> public/gaming.html
# echo " </body></html> " >> public/gaming.html
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1
with:
api_token: ${{ secrets.NEOCITIES_API_TOKEN }}
cleanup: true
dist_dir: public
protected_files: 'dropbox/*'