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
|
- name: cd repo
|
||||||
run: cd ${{ github.workspace }}
|
run: cd ${{ github.workspace }}
|
||||||
- name: build
|
- name: build
|
||||||
run: make
|
run: |
|
||||||
|
cd bin
|
||||||
|
make
|
||||||
- name: add custom domain
|
- name: add custom domain
|
||||||
run: echo "lipu-sona.pona.la" > public/CNAME
|
run: echo "lipu-sona.pona.la" > public/CNAME
|
||||||
- name: deploy
|
- name: deploy
|
||||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,4 +1,4 @@
|
||||||
blogdates.txt
|
blogdates.txt
|
||||||
Makefile.cfg
|
Makefile.cfg
|
||||||
upload.name
|
upload.name
|
||||||
out/
|
public/
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
# The base image is Alpine Linux, because it's small and awesome
|
# The base image is Alpine Linux, because it's small and awesome
|
||||||
|
|
||||||
|
# Appears to be in disuse.
|
||||||
|
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
|
|
||||||
stages: # List of stages for jobs, and their order of execution
|
stages: # List of stages for jobs, and their order of execution
|
|
@ -1,9 +1,10 @@
|
||||||
-include Makefile.cfg
|
-include Makefile.cfg
|
||||||
|
|
||||||
OUTDIR=public
|
OUTDIR=../public
|
||||||
PAGEDIR=pages
|
PAGEDIR=../pages
|
||||||
SRCDIR=src
|
SRCDIR=../src
|
||||||
TPLDIR=tpl
|
TPLDIR=../templates
|
||||||
|
STATICDIR=../static
|
||||||
|
|
||||||
ifndef THEME
|
ifndef THEME
|
||||||
THEME=theme
|
THEME=theme
|
||||||
|
@ -20,9 +21,9 @@ PAGES_HTML = $(patsubst $(PAGEDIR)/%.md,$(OUTDIR)/%.html,$(_PAGES))
|
||||||
_DIRECTORIES = $(shell find $(PAGEDIR)/* -type d)
|
_DIRECTORIES = $(shell find $(PAGEDIR)/* -type d)
|
||||||
DIRECTORIES = $(patsubst $(PAGEDIR)/, $(OUTDIR)/, $(_PAGES))
|
DIRECTORIES = $(patsubst $(PAGEDIR)/, $(OUTDIR)/, $(_PAGES))
|
||||||
|
|
||||||
_STATIC_FILES = $(shell find -L static/ -type f -name \* | grep -v \\.h$)
|
_STATIC_FILES = $(shell find -L $(STATICDIR)/ -type f -name \* | grep -v \\.h$)
|
||||||
_STATIC_HEADERS = $(shell find -L static/ -type f -name \*\\.h)
|
_STATIC_HEADERS = $(shell find -L $(STATICDIR)/ -type f -name \*\\.h)
|
||||||
OUT_STATIC = $(patsubst static/%,public/%,$(_STATIC_FILES)) $(patsubst static/%.h,public/%,$(_STATIC_HEADERS))
|
OUT_STATIC = $(patsubst $(STATICDIR)/%,$(OUTDIR)/%,$(_STATIC_FILES)) $(patsubst $(STATICDIR)/%.h,$(OUTDIR)/%,$(_STATIC_HEADERS))
|
||||||
|
|
||||||
.SUFFIXES:
|
.SUFFIXES:
|
||||||
.PHONY: all upload
|
.PHONY: all upload
|
||||||
|
@ -36,13 +37,13 @@ $(OUTDIR)/%.html: $(PAGEDIR)/%.md $(TPLDIR)/default.tpl
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
$(THEME) $(THEME_FLAGS) -t $(TPLDIR)/default.tpl -p $(patsubst $(OUTDIR)/%,%,$@) -o $@ $<
|
$(THEME) $(THEME_FLAGS) -t $(TPLDIR)/default.tpl -p $(patsubst $(OUTDIR)/%,%,$@) -o $@ $<
|
||||||
|
|
||||||
$(OUTDIR)/%: static/%.h
|
$(OUTDIR)/%: $(STATICDIR)/%.h
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
cpp -E -P -o $@ $<
|
cpp -E -P -o $@ $<
|
||||||
|
|
||||||
$(OUTDIR)/%: static/%
|
$(OUTDIR)/%: $(STATICDIR)/%
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
cp -r $< $@
|
cp -r $< $@
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf public/*
|
rm -rf $(OUTDIR)/*
|
|
@ -1,4 +1,7 @@
|
||||||
#!/bin/sh
|
#!/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="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="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'
|
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
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Appears to be in disuse.
|
||||||
|
|
||||||
DCMODE=0
|
DCMODE=0
|
||||||
|
|
||||||
while getopts d name
|
while getopts d name
|
Loading…
Add table
Reference in a new issue