Skip to content

Commit 5ad9041

Browse files
committed
Deploy action
1 parent fac2fa4 commit 5ad9041

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 }}

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
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",

0 commit comments

Comments
 (0)