Skip to content

Commit

Permalink
fix: Add .PHONY to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ketozhang committed Aug 4, 2024
1 parent d114afc commit 4ea2eac
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v1
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ _NOTEBOOKS = Astrophysics Computer_Science Data_Science Physics Others # Finance
NOTEBOOKS = $(_NOTEBOOKS:%=$(SITE_PATH)/%) # e.g., _site/Astrophyics/
TOCS = $(_NOTEBOOKS:%=%/_toc.yml)

.PHONY: all build help tocs

build : $(NOTEBOOKS)

help:
Expand Down

0 comments on commit 4ea2eac

Please sign in to comment.