-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.09 KB
/
Copy pathjekyll.yml
File metadata and controls
44 lines (37 loc) · 1.09 KB
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
name: Jekyll site CI
on:
push:
branches:
- master
- devbranch
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the site in the jekyll/builder container
env:
GTAG_ANALYTICS: ${{ secrets.GTAG_ANALYTICS }}
run: |
docker run \
-e GTAG_ANALYTICS=$GTAG_ANALYTICS \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod 777 /srv/jekyll && jekyll build --future"
# jekyll:
# runs-on: ubuntu-latest
# 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-
# # Standard usage
# - uses: helaili/jekyll-action@2.0.3
# env:
# JEKYLL_PAT: ${{ secrets.JEKYLL_PAT }}