Build own site.

This commit is contained in:
Michael Lipp 2025-03-02 22:12:43 +01:00
parent 7670857d0a
commit 083c6db2da

View file

@ -35,25 +35,38 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '21'
distribution: 'temurin'
- name: Setup Ruby - name: Setup Ruby
uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@v1
with: with:
ruby-version: '3.3' # Not needed with a .ruby-version file ruby-version: '3.3' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically 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 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 - name: Setup Pages
id: pages id: pages
uses: actions/configure-pages@v5 uses: actions/configure-pages@v5
- name: Build with Jekyll - name: Build with Jekyll
# Outputs to the './_site' directory by default # Outputs to the './_site' directory by default
run: bundle exec jekyll build run: cd webpages && bundle exec jekyll build
env: env:
JEKYLL_ENV: production JEKYLL_ENV: production
- name: Copy javadoc
run: cp -a build/javadoc webpages/_site/vm-operator/
- name: Index pagefind - name: Index pagefind
run: npx pagefind --source "_site/vm-operator" run: cd webpages && npx pagefind --source "_site/vm-operator"
- name: Upload artifact - name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default # Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v3 uses: actions/upload-pages-artifact@v3
with:
path: './webpages/_site'
# Deployment job # Deployment job
deploy: deploy: