Skip to content

Commit 9ecb88a

Browse files
committed
make: use make in workflow, add jekyll args
1 parent f8a061b commit 9ecb88a

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,15 @@ jobs:
3535
uses: actions/setup-node@v4
3636
with:
3737
node-version: 18
38-
- run: npm install -g @mermaid-js/mermaid-cli
38+
- name: Install mermaid-cli
39+
run: npm install -g @mermaid-js/mermaid-cli
3940
- name: Generate Site
40-
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
41+
run: |
42+
bundle
43+
make publish
4144
env:
4245
JEKYLL_ENV: production
46+
ADD_JEKYLL_ARGS: --baseurl "${{ steps.pages.outputs.base_path }}"
4347
- name: Upload Artifacts
4448
uses: actions/upload-pages-artifact@v1
4549
- name: Deploy to GitHub Pages

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
all: test-before-build build-other-versions build test-after-build
2+
publish: test-before-build build-other-versions build
23
production: clean all production-test
34

45
## If we call git in our tests without using the --no-pager option
@@ -23,7 +24,7 @@ build:
2324
@# files aren't created before changed input files are marked
2425
@# for schema validation.
2526
@sleep 0.1
26-
bundle exec jekyll build $(JEKYLL_FLAGS)
27+
bundle exec jekyll build $(JEKYLL_FLAGS) $(ADD_JEKYLL_ARGS)
2728

2829
test-before-build: $(compatibility_validation) $(topic_validation)
2930
## Check for Markdown formatting problems

0 commit comments

Comments
 (0)