mirror of
https://github.com/mrrpnya/lipu-sona.git
synced 2025-02-13 08:34:39 +00:00
ci: move to bin
Clean up root folder
This commit is contained in:
parent
2a402c8268
commit
2696772df0
6 changed files with 23 additions and 12 deletions
4
.github/workflows/main.yml
vendored
4
.github/workflows/main.yml
vendored
|
@ -17,7 +17,9 @@ jobs:
|
|||
- name: cd repo
|
||||
run: cd ${{ github.workspace }}
|
||||
- name: build
|
||||
run: make
|
||||
run: |
|
||||
cd bin
|
||||
make
|
||||
- name: add custom domain
|
||||
run: echo "lipu-sona.pona.la" > public/CNAME
|
||||
- name: deploy
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
|||
blogdates.txt
|
||||
Makefile.cfg
|
||||
upload.name
|
||||
out/
|
||||
public/
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
# The base image is Alpine Linux, because it's small and awesome
|
||||
|
||||
# Appears to be in disuse.
|
||||
|
||||
image: alpine:latest
|
||||
|
||||
stages: # List of stages for jobs, and their order of execution
|
|
@ -1,9 +1,10 @@
|
|||
-include Makefile.cfg
|
||||
|
||||
OUTDIR=public
|
||||
PAGEDIR=pages
|
||||
SRCDIR=src
|
||||
TPLDIR=tpl
|
||||
OUTDIR=../public
|
||||
PAGEDIR=../pages
|
||||
SRCDIR=../src
|
||||
TPLDIR=../templates
|
||||
STATICDIR=../static
|
||||
|
||||
ifndef THEME
|
||||
THEME=theme
|
||||
|
@ -20,9 +21,9 @@ PAGES_HTML = $(patsubst $(PAGEDIR)/%.md,$(OUTDIR)/%.html,$(_PAGES))
|
|||
_DIRECTORIES = $(shell find $(PAGEDIR)/* -type d)
|
||||
DIRECTORIES = $(patsubst $(PAGEDIR)/, $(OUTDIR)/, $(_PAGES))
|
||||
|
||||
_STATIC_FILES = $(shell find -L static/ -type f -name \* | grep -v \\.h$)
|
||||
_STATIC_HEADERS = $(shell find -L static/ -type f -name \*\\.h)
|
||||
OUT_STATIC = $(patsubst static/%,public/%,$(_STATIC_FILES)) $(patsubst static/%.h,public/%,$(_STATIC_HEADERS))
|
||||
_STATIC_FILES = $(shell find -L $(STATICDIR)/ -type f -name \* | grep -v \\.h$)
|
||||
_STATIC_HEADERS = $(shell find -L $(STATICDIR)/ -type f -name \*\\.h)
|
||||
OUT_STATIC = $(patsubst $(STATICDIR)/%,$(OUTDIR)/%,$(_STATIC_FILES)) $(patsubst $(STATICDIR)/%.h,$(OUTDIR)/%,$(_STATIC_HEADERS))
|
||||
|
||||
.SUFFIXES:
|
||||
.PHONY: all upload
|
||||
|
@ -36,13 +37,13 @@ $(OUTDIR)/%.html: $(PAGEDIR)/%.md $(TPLDIR)/default.tpl
|
|||
@mkdir -p $(@D)
|
||||
$(THEME) $(THEME_FLAGS) -t $(TPLDIR)/default.tpl -p $(patsubst $(OUTDIR)/%,%,$@) -o $@ $<
|
||||
|
||||
$(OUTDIR)/%: static/%.h
|
||||
$(OUTDIR)/%: $(STATICDIR)/%.h
|
||||
@mkdir -p $(@D)
|
||||
cpp -E -P -o $@ $<
|
||||
|
||||
$(OUTDIR)/%: static/%
|
||||
$(OUTDIR)/%: $(STATICDIR)/%
|
||||
@mkdir -p $(@D)
|
||||
cp -r $< $@
|
||||
|
||||
clean:
|
||||
rm -rf public/*
|
||||
rm -rf $(OUTDIR)/*
|
|
@ -1,4 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Appears to be in disuse.
|
||||
|
||||
perl -0pe 's/<div class="warning">(.*?)<\/div>/<table bgcolor="#f5ee9b" border="1px solid #9b6e2d"><tbody><tr><td>\1<\/td><\/tr><\/tbody><\/table>/gs' | \
|
||||
perl -0pe 's/<div class="info">(.*?)<\/div>/<table bgcolor="#8be1e0" border="1px solid #221f31"><tbody><tr><td>\1<\/td><\/tr><\/tbody><\/table>/gs' | \
|
||||
perl -0pe 's/<div class="error">(.*?)<\/div>/<table bgcolor="#ea9182" border="1px solid #a14d3f"><tbody><tr><td>\1<\/td><\/tr><\/tbody><\/table>/gs'
|
|
@ -1,5 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Appears to be in disuse.
|
||||
|
||||
DCMODE=0
|
||||
|
||||
while getopts d name
|
Loading…
Add table
Reference in a new issue