-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (32 loc) · 1006 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
34
35
36
37
38
39
name: Jekyll HTMLProofer
on: [push, pull_request]
jobs:
build:
name: "Jekyll Build and Test"
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup Ruby Environment
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
bundler-cache: true
- name: Build Site and run HTML Proofer
run: |
bundle exec jekyll build
bundle exec htmlproofer --assume-extension ./_site --url-swap '^/virtual-expo/:/' --disable-external
deploy:
name: "Deploy to GitHub Pages"
if: ${{ github.ref_name == github.event.repository.default_branch }}
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .
enable_jekyll: true