Skip to content

Commit 4ff8dc4

Browse files
committed
Run build on PR
1 parent 16eef5c commit 4ff8dc4

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build HTML content from source
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '*'
7+
8+
# Allows you to run this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- name: Setup Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: '3.3'
25+
- name: Install dependencies
26+
run: bundle install
27+
- name: Build with Middleman
28+
run: |
29+
mkdir __build
30+
BUILD_OUTPUT="__build" middleman build
31+
- name: HTML Preview
32+
id: html_preview
33+
uses: pavi2410/html-preview-action@v2
34+
with:
35+
html_file: '__build/index.html'

0 commit comments

Comments
 (0)