Skip to content

Commit

Permalink
replace jekyll-build-pages action with our own step
Browse files Browse the repository at this point in the history
  • Loading branch information
caindy committed Jan 13, 2024
1 parent 01e5d35 commit fbb7557
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/post.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ if [[ ("${1,,}" == "bundle") || ("${1,,}" == "start") ]]; then
fi

if [[ "${1,,}" == "start" ]]; then
cd $PARENT/docs && bundle update && nohup bundle exec jekyll serve --force_polling --livereload --safe > $PARENT/jekyll.out 2>&1 &
cd $PARENT/docs && bundle update && nohup bundle exec jekyll serve --force_polling --livereload > $PARENT/jekyll.out 2>&1 &
sleep 4
tail $PARENT/jekyll.out
echo "Jekyll started, to monitor see $PARENT/jekyll.out"
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/openapi-bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,25 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
- run: "npx --yes @redocly/cli bundle ./docs/_data/openapi-split.yaml -o ./docs/openapi.yaml"
- name: Redocly bundle
run: "npx --yes @redocly/cli bundle ./docs/_data/openapi-split.yaml -o ./docs/openapi.yaml"

- name: Setup Ruby
uses: ruby/setup-ruby@v1.98
with:
ruby-version: '3.1'
bundler-cache: true

- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build
uses: actions/jekyll-build-pages@v1
with:
source: './docs'
- name: Build with Jekyll
run: bundle exec jekyll build --source ./docs"
env:
JEKYLL_ENV: production
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

Expand Down
1 change: 1 addition & 0 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"NERC",
"openapi",
"redoc",
"Redocly",
"TROLIE"
],
"ignoreWords": [],
Expand Down

0 comments on commit fbb7557

Please sign in to comment.