File tree Expand file tree Collapse file tree 4 files changed +69
-21
lines changed Expand file tree Collapse file tree 4 files changed +69
-21
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 : Copy static assets to dist
29+ shell : bash
30+ run : |
31+ make
32+ mkdir static
33+ find . "(" -name "*.html" -o -name "*.css" -o -name "*.js" ")" -not -path "./static/*" -not -path "./.github/*" -exec cp {} static \;
34+ - name : Upload static assets
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : static_assets
38+ path : ./static
39+ deploy :
40+ needs : build
41+ environment :
42+ name : github-pages
43+ url : ${{ steps.deployment.outputs.page_url }}
44+ runs-on : ubuntu-latest
45+ steps :
46+ - name : Download static_assets
47+ uses : actions/download-artifact@v4
48+ with :
49+ name : static_assets
50+ - name : ls
51+ shell : bash
52+ run : |
53+ echo "lsing"
54+ ls -la .
55+ - name : Setup Pages
56+ uses : actions/configure-pages@v5
57+ - name : Upload artifact
58+ uses : actions/upload-pages-artifact@v3
59+ with :
60+ path : ./
61+ - name : Deploy to GitHub Pages
62+ id : deployment
63+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
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