forked from music-encoding/music-encoding.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (26 loc) · 907 Bytes
/
jekyll.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
name: Build website with Jekyll
on:
push:
branches: [main]
permissions:
contents: read
jobs:
build_jekyll:
runs-on: ubuntu-latest
if: github.repository_owner == 'music-encoding'
permissions:
contents: write
steps:
- uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
# Use GitHub Actions' cache to shorten build times and decrease load on servers
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: vendor/bundle
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile') }}
restore-keys: |
${{ runner.os }}-gems-
# Build Jekyll to the specified target branch
- uses: helaili/jekyll-action@c1527523361ec3ecc54b2371ddef44826e28c0f5 # v2.5.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
target_branch: 'gh-pages'