diff options
author | Jonas Kohl | 2024-07-19 13:36:48 +0200 |
---|---|---|
committer | Jonas Kohl | 2024-07-19 13:36:48 +0200 |
commit | 63fe1d9cc50fef591f5a6b1813804d40e1d302d7 (patch) | |
tree | 8c67ddb2b8666dd0e92852af9c6dcf36d5e9c32a | |
parent | 22327394454fe28c83d58f9f1b61f82b45d09052 (diff) |
Add publishing task
-rw-r--r-- | Makefile | 5 | ||||
-rw-r--r-- | README.txt | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,7 +1,7 @@ SRCFILES:=$(shell find src/pages/ -type f -name '*.php') HTMLTARGETS:=$(SRCFILES:src/pages/%.php=build/%.html) -.PHONY: build/static +.PHONY: build/static publish all: $(HTMLTARGETS) $(STATICFILES) build/static @@ -14,3 +14,6 @@ build/%.html: src/pages/%.php src/template.php clean: rm -Rf build + +publish: + neocities push build @@ -1,3 +1,5 @@ This is the source code of my Neocities site at https://hozyro.neocities.org/ To build it, you'll need GNU Make and a recent version of PHP. Then just run `make`. To clean the output directory, run `make clean`. + +To publish it, you can use `make publish`. This requires Ruby and the Neocities CLI to be installed. You can learn more here: https://neocities.org/cli |