-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (28 loc) · 833 Bytes
/
release.yml
File metadata and controls
34 lines (28 loc) · 833 Bytes
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
name: Build and Deploy GH Pages
on:
push:
branches:
- master
paths-ignore:
- 'docs/**'
- '_functions/**'
jobs:
jekyll:
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v2
# Use GitHub Actions' cache to shorten build times and decrease load on servers.
- uses: actions/cache@v1
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
restore-keys: |
${{ runner.os }}-gems-
- name: Copy post for og-images
run: cp _posts/* _og-images/
- uses: helaili/jekyll-action@2.0.4
env:
# Ideally use GITHUB_TOKEN but it gives error for this action.
JEKYLL_PAT: ${{ github.actor }}:${{ github.token }}
with:
target_branch: 'gh-pages'