Skip to content

Commit

Permalink
rework make files
Browse files Browse the repository at this point in the history
Let's not keep two copies of the build steps in both CI and in the
Makefile. This moves everything to the makefile, fixes the makefile to
actually work, and changes the CI to invoke make.

Also bump the versions of tailwindcss since we're here.

Signed-off-by: Tycho Andersen <[email protected]>
  • Loading branch information
tych0 committed Aug 12, 2023
1 parent ced4306 commit d21dcca
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 15 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,12 @@ jobs:
with:
hugo-version: '0.111.3'
extended: true

- name: Tailwind CSS Typography plugin
working-directory: themes/qtail
run: npm install @tailwindcss/typography

- name: Build Qtail
working-directory: themes/qtail
run: npm run build-qtail

- name: install build dependencies
run: make deps

- name: Build
run: hugo --gc --minify
run: make

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
Expand Down
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
all:
cd themes/qtail/
npm run build-qtail
public:
.PHONY: public
public: qtail
hugo --gc --minify

.PHONY: qtail
qtail:
(cd themes/qtail/ && npm run build-qtail)

deps:
(cd themes/qtail/ && npm install @tailwindcss/typography)

clean:
rm -rf public resources themes/qtail/assets/style.css
2 changes: 1 addition & 1 deletion themes/qtail/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion themes/qtail/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@tailwindcss/typography": "^0.5.2",
"@tailwindcss/typography": "^0.5.9",
"tailwindcss": "^3.0.24"
}
}

0 comments on commit d21dcca

Please sign in to comment.