File tree Expand file tree Collapse file tree 6 files changed +53
-11
lines changed Expand file tree Collapse file tree 6 files changed +53
-11
lines changed Original file line number Diff line number Diff line change 1
- module . exports = {
2
- dir : {
3
- input : "src" ,
4
- output : "dist" ,
5
- } ,
1
+ module . exports = ( eleventyConfig ) => {
2
+ eleventyConfig . addPassthroughCopy ( "src/CNAME" ) ;
3
+
4
+ return {
5
+ dir : {
6
+ input : "src" ,
7
+ output : "docs" ,
8
+ } ,
9
+ } ;
6
10
} ;
Original file line number Diff line number Diff line change
1
+ name : github pages
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ deploy :
10
+ runs-on : ubuntu-18.04
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ with :
14
+ submodules : true
15
+ fetch-depth : 0
16
+
17
+ - name : Setup Node
18
+
19
+ with :
20
+ node-version : ' 12.x'
21
+
22
+ - name : Cache dependencies
23
+ uses : actions/cache@v2
24
+ with :
25
+ path : ~/.npm
26
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
27
+ restore-keys : |
28
+ ${{ runner.os }}-node-
29
+
30
+ - run : npm ci
31
+ - run : npm run build
32
+
33
+ - name : Deploy
34
+ uses : peaceiris/actions-gh-pages@v3
35
+ with :
36
+ github_token : ${{ secrets.GITHUB_TOKEN }}
37
+ publish_dir : ./docs
Original file line number Diff line number Diff line change 1
- dist /
1
+ docs /
2
2
node_modules /
Original file line number Diff line number Diff line change 1
- dist
2
- node_modules
1
+ docs /
2
+ node_modules /
Original file line number Diff line number Diff line change 4
4
"description" : " " ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
7
- "clean" : " rm -rf dist && mkdir -p dist /styles" ,
8
- "dev" : " npm run clean && postcss src/styles/global.css > dist /styles/global.css && eleventy --serve" ,
9
- "build" : " npm run clean && NODE_ENV=production postcss src/styles/global.css > dist /styles/global.css && eleventy" ,
7
+ "clean" : " rm -rf docs && mkdir -p docs /styles" ,
8
+ "dev" : " npm run clean && postcss src/styles/global.css > docs /styles/global.css && eleventy --serve" ,
9
+ "build" : " npm run clean && NODE_ENV=production postcss src/styles/global.css > docs /styles/global.css && eleventy" ,
10
10
"format" : " prettier --write src"
11
11
},
12
12
"keywords" : [],
Original file line number Diff line number Diff line change
1
+ kdl.dev
You can’t perform that action at this time.
0 commit comments