Skip to content

Commit

Permalink
Use makefile in pipeline.
Browse files Browse the repository at this point in the history
  • Loading branch information
RossBugginsNHS committed Jun 28, 2024
1 parent f9f879b commit a68cb80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/actions/build-docs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ runs:
working-directory: ./docs
# Outputs to the './_site' directory by default
shell: bash
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
run: make build_existing_version BASE_URL="${{ steps.pages.outputs.base_path }}"
#run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
Expand Down
12 changes: 10 additions & 2 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
BASE_URL ?= ""

default: install

h help:
Expand All @@ -12,11 +14,17 @@ s serve:
bundle exec jekyll serve --trace --livereload

build: version
npm run build
npm run build -- --baseurl $(BASE_URL)

build_existing_version: copyversion
npm run build -- --baseurl $(BASE_URL)

debug: version
npm run debug
npm run debug -- --baseurl $(BASE_URL)

version:
(cd .. && make version)
make copyversion

copyversion:
cp -f ../.version ./_includes/.version

0 comments on commit a68cb80

Please sign in to comment.