Skip to content

Commit 2952edc

Browse files
committed
Add workflow on PR to verify fixed build action
1 parent 156e3ba commit 2952edc

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/pr-build.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# workflow to verify new jekyll.yml logic, to be removed
2+
name: PR build (verify)
3+
4+
on:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Read .tool-versions
14+
uses: marocchino/tool-versions-action@v1
15+
id: versions
16+
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{steps.versions.outputs.nodejs}}
20+
cache: 'npm'
21+
- run: npm install
22+
23+
- uses: ruby/setup-ruby@v1
24+
with:
25+
ruby-version: ${{steps.versions.outputs.ruby}}
26+
bundler-cache: true
27+
28+
- name: Build
29+
run: bundle exec jekyll build
30+
31+
- name: Upload site artifact
32+
uses: actions/upload-artifact@v4
33+
with:
34+
name: _site
35+
path: _site/
36+
retention-days: 1

0 commit comments

Comments
 (0)