-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.02 KB
/
github-pages.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: Github Pages Deploy
on:
push:
branches:
- master
jobs:
github-pages:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache to Shorten Build Time
uses: actions/cache@v2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Set-up Node
uses: actions/setup-node@v1
with:
node-version: "10.x"
- name: Set-up jekyll
uses: helaili/[email protected]
with:
token: ${{ secrets.JEKYLL_PAT }}
target_branch: 'gh-pages'
# - run: npm install
# - run: npm run build
# - run: npm test
# - name: Deploy
# uses: crazy-max/ghaction-github-pages@v1
# with:
# target_branch: gh-pages
# build_dir: build
env:
JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}
GITHUB_TOKEN: ${{ secrets.JEKYLL_PAT }}