diff --git a/.github/workflows/www.yml b/.github/workflows/www.yml index ac5bb11..a23f812 100644 --- a/.github/workflows/www.yml +++ b/.github/workflows/www.yml @@ -39,7 +39,7 @@ jobs: - name: Setup deps run: pnpm i - name: Build - run: make dist + run: make - name: Upload artifact # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v3 diff --git a/Makefile b/Makefile index 19c7d82..66bc746 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: all dist paper clean watch +.PHONY: all paper clean watch SRC := www BUILD := dist @@ -7,9 +7,7 @@ allwww := $(shell find $(SRC) -type f) allsrc := main.js $(shell find plugins/) papersrc := $(shell find ../paper/src/ -type f) -all: dist $(SRC)/paper.html - -dist: $(BUILD)/index.html +all: $(BUILD)/index.html $(BUILD)/index.html: $(allsrc) $(allwww) tailwind.config.js postcss.config.js SRC=$(SRC) DEST=$(BUILD) URL='http://www.basis.loc' node main