-
Notifications
You must be signed in to change notification settings - Fork 4
35 lines (30 loc) · 887 Bytes
/
build.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
name: Pelican Build
on:
push:
branches:
- src
permissions:
contents: write
jobs:
pelican-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Install Dependencies
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Not needed with a .ruby-version file
- run: make install
- name: Build Site
run: make build
- name: Deploy from src
uses: JamesIves/github-pages-deploy-action@v4
if: github.ref == 'refs/heads/src' && github.event_name != 'pull_request'
with:
folder: output # The folder the action should deploy.
- name: Display Diff
if: github.ref != 'refs/heads/src' || github.event_name == 'pull_request'
run: make diff