-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (44 loc) · 1.1 KB
/
deploy-site.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
41
42
43
44
45
46
name: Deploy site
on:
push:
branches:
- main
jobs:
deploy-site:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: '14.19.1'
- name: Setup NPM
working-directory: .
run: |
sudo npm install -g [email protected]
- name: NPM Install
working-directory: .
run: |
npm install
- name: Run Eleventy
working-directory: .
run: |
./build.sh
- name: Add .nojekyll
working-directory: .
run: |
touch _site/.nojekyll
- name: Add CNAME
working-directory: .
run: |
echo 'ceramic-engine.com' > _site/CNAME
- name: Deploy to Github Pages
uses: ceramic-engine/[email protected]
env:
PUBLISH_DIR: _site
PUBLISH_BRANCH: gh-pages
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}