Skip to content

Commit

Permalink
since the paper is versioned, adding a build target that doest try to…
Browse files Browse the repository at this point in the history
… build the paper (make dist) that `make all` will reference.
  • Loading branch information
orthecreedence committed Mar 28, 2024
1 parent c441d64 commit c295fdd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/www.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Setup deps
run: pnpm i
- name: Build
run: make
run: make dist
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3
Expand Down
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: all paper clean watch
.PHONY: all dist paper clean watch

SRC := www
BUILD := dist
Expand All @@ -7,9 +7,11 @@ allwww := $(shell find $(SRC) -type f)
allsrc := main.js $(shell find plugins/)
papersrc := $(shell find ../paper/src/ -type f)

all: $(BUILD)/index.html
all: dist $(SRC)/paper.html

$(BUILD)/index.html: $(allsrc) $(allwww) tailwind.config.js postcss.config.js $(SRC)/paper.html
dist: $(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
npx postcss $(BUILD)/css/**/*.css --base $(BUILD)/ --dir $(BUILD)/

Expand Down

0 comments on commit c295fdd

Please sign in to comment.