forked from servo/servo.org
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (38 loc) · 977 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '16.x'
- name: Checkout
uses: actions/checkout@v2
- name: Cache Node modules
uses: actions/cache@v2
with:
path: ~/.npm
key: npm-${{ runner.os }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-${{ runner.os }}-
npm-
- name: Install Node modules
run: npm install
- name: Sass
run: npm run sass
- name: Sass Reveal.js
run: npm run sass-revealjs
- name: Eleventy
run: |
npx eleventy --output='_site/' --pathprefix='/'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./_site
github_token: ${{ secrets.GITHUB_TOKEN }}
cname: servo.org