File tree Expand file tree Collapse file tree 2 files changed +37
-1
lines changed
Expand file tree Collapse file tree 2 files changed +37
-1
lines changed Original file line number Diff line number Diff line change 1+ name: Build Eleventy
2+
3+ on:
4+ push:
5+ branches:
6+ - main
7+
8+ jobs:
9+ build:
10+ runs-on: ubuntu-20.04
11+
12+ strategy:
13+ matrix:
14+ node-version: [12.x]
15+
16+ steps:
17+ - uses: actions/checkout@v2
18+
19+ - name: Use Node.js ${{ matrix.node-version }}
20+ uses: actions/setup-node@v1
21+ with:
22+ node-version: ${{ matrix.node-version }}
23+
24+ - name: Install dependencies & build
25+ run: |
26+ npm ci
27+ npm run build
28+
29+ - name: Deploy
30+ uses: peaceiris/actions-gh-pages@v3
31+ with:
32+ publish_dir: ./_site
33+ github_token: ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 33 "version" : " 1.0.0" ,
44 "main" : " index.js" ,
55 "scripts" : {
6- "test" : " echo \" Error: no test specified\" && exit 1"
6+ "build" : " npx eleventy --formats=scss" ,
7+ "serve" : " npx eleventy --formats=scss --serve" ,
8+ "debug" : " DEBUG=* npx eleventy" ,
9+ "test" : " jest"
710 },
811 "repository" : {
912 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments