Build own site.
This commit is contained in:
parent
7670857d0a
commit
083c6db2da
1 changed files with 15 additions and 2 deletions
17
.github/workflows/jekyll.yml
vendored
17
.github/workflows/jekyll.yml
vendored
|
|
@ -35,25 +35,38 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up JDK 21
|
||||
uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: '21'
|
||||
distribution: 'temurin'
|
||||
- name: Setup Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '3.3' # Not needed with a .ruby-version file
|
||||
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
||||
cache-version: 0 # Increment this number if you need to re-download cached gems
|
||||
- name: Install graphviz
|
||||
run: sudo apt-get install graphviz
|
||||
- name: Build apidocs
|
||||
run: ./gradlew apidocs
|
||||
- name: Setup Pages
|
||||
id: pages
|
||||
uses: actions/configure-pages@v5
|
||||
- name: Build with Jekyll
|
||||
# Outputs to the './_site' directory by default
|
||||
run: bundle exec jekyll build
|
||||
run: cd webpages && bundle exec jekyll build
|
||||
env:
|
||||
JEKYLL_ENV: production
|
||||
- name: Copy javadoc
|
||||
run: cp -a build/javadoc webpages/_site/vm-operator/
|
||||
- name: Index pagefind
|
||||
run: npx pagefind --source "_site/vm-operator"
|
||||
run: cd webpages && npx pagefind --source "_site/vm-operator"
|
||||
- name: Upload artifact
|
||||
# Automatically uploads an artifact from the './_site' directory by default
|
||||
uses: actions/upload-pages-artifact@v3
|
||||
with:
|
||||
path: './webpages/_site'
|
||||
|
||||
# Deployment job
|
||||
deploy:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue