File tree Expand file tree Collapse file tree 6 files changed +79
-25
lines changed Expand file tree Collapse file tree 6 files changed +79
-25
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to Pages
2+
3+ on :
4+ push :
5+ branches : ["master"]
6+
7+ # Allows you to run this workflow manually from the Actions tab
8+ workflow_dispatch :
9+
10+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+
16+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
17+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
18+ concurrency :
19+ group : " pages"
20+ cancel-in-progress : false
21+
22+ jobs :
23+ build :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout files
27+ uses : actions/checkout@v4
28+ - name : Build static assets
29+ shell : bash
30+ run : make
31+ - name : Upload static assets
32+ uses : actions/upload-artifact@v4
33+ with :
34+ name : static_assets
35+ path : ./static
36+ deploy :
37+ needs : build
38+ environment :
39+ name : github-pages
40+ url : ${{ steps.deployment.outputs.page_url }}
41+ runs-on : ubuntu-latest
42+ steps :
43+ - name : Download static_assets
44+ uses : actions/download-artifact@v4
45+ with :
46+ name : static_assets
47+ - name : Setup Pages
48+ uses : actions/configure-pages@v5
49+ - name : Upload artifact
50+ uses : actions/upload-pages-artifact@v3
51+ with :
52+ path : ./
53+ - name : Deploy to GitHub Pages
54+ id : deployment
55+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11* ~
22* #* #
33* .pdf
4- * .html
4+
5+ static
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ ATTENTION_PREFIX := "\033[1;36m[!]\033[0m "
1414
1515.PHONY : clean shell
1616
17- all : $(HTML_FILES )
17+ all : $(HTML_FILES ) copy
1818
1919shell :
2020 $(DOCKER_RUN ) -i --entrypoint=/bin/zsh $(DOCKER_IMG )
@@ -24,8 +24,21 @@ shell:
2424 @$(DOCKER_RUN ) $(DOCKER_IMG ) $< $(EMACS_FLAGS ) -f org-html-export-to-html
2525 @$(DOCKER_RUN ) --entrypoint=/bin/chown $(DOCKER_IMG ) $(USER ) " $* .html"
2626
27+ copy :
28+ @mkdir -p static
29+ @find . \
30+ " (" -name " *.html" -o -name " *.css" -o -name " *.js" " )" \
31+ -not -path " ./static/*" \
32+ -not -path " ./.github/*" \
33+ -exec cp {} static \;
34+ @find . \
35+ -name " *.html" \
36+ -not -path " ./static/*" \
37+ -not -path " ./.github/*" \
38+ -exec mv {} static \;
39+
2740server :
28- python3 -m http.server 8000
41+ python3 -m http.server 8000 --directory ./static
2942
3043clean :
31- rm -rf * .html
44+ rm -rf ./static
Original file line number Diff line number Diff line change 2020# I recommend you to generate your own css/js files by forking, cloning and customizing the file
2121# theme.json before building it.
2222#
23- #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="/org-theme/dist/long/ bundle.css"/>
24- #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="/css/ syntax.css" />
25- #+HTML_HEAD: <script src="/org-theme/dist/long/ bundle.js" type="text/javascript" ></script>
23+ #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="bundle.css"/>
24+ #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="syntax.css" />
25+ #+HTML_HEAD: <script src="bundle.js" type="text/javascript" ></script>
Original file line number Diff line number Diff line change 1717# theme.json before building it.
1818#
1919#
20- #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="/org-theme/dist/short/ bundle.css"/>
21- #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="/css/ syntax.css" />
22- #+HTML_HEAD: <script src="/org-theme/dist/short/ bundle.js" type="text/javascript" ></script>
20+ #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="bundle.css"/>
21+ #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="syntax.css" />
22+ #+HTML_HEAD: <script src="bundle.js" type="text/javascript" ></script>
You can’t perform that action at this time.
0 commit comments