mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-08 14:05:39 -04:00
fix(docs): compile Jekyll docs site and add root redirect in CI (#5526)
This commit is contained in:
21
.github/workflows/docs-deploy.yml
vendored
21
.github/workflows/docs-deploy.yml
vendored
@@ -48,18 +48,33 @@ jobs:
|
||||
- name: Build Dokka HTML documentation
|
||||
run: ./gradlew dokkaGeneratePublicationHtml --no-configuration-cache
|
||||
|
||||
- name: Setup Ruby
|
||||
uses: ruby/setup-ruby@v1
|
||||
with:
|
||||
ruby-version: '4.0.4'
|
||||
bundler-cache: true
|
||||
working-directory: docs
|
||||
|
||||
- name: Generate Docs Site
|
||||
run: ./gradlew generateDocsBundle validateDocsBundle publishDocsSite -Pdocs.channel=root -Pci=true
|
||||
|
||||
- name: Compile Jekyll Docs Site
|
||||
run: |
|
||||
BUNDLE_GEMFILE=docs/Gemfile bundle exec jekyll build \
|
||||
--source build/_site \
|
||||
--destination build/jekyll_site \
|
||||
--baseurl /${{ github.event.repository.name }}
|
||||
touch build/jekyll_site/.nojekyll
|
||||
|
||||
- name: Assemble Pages artifact
|
||||
run: |
|
||||
# Copy Dokka output into _site/api/
|
||||
cp -r build/dokka/html build/_site/api
|
||||
# Copy Dokka output into compiled jekyll_site/api/
|
||||
cp -r build/dokka/html build/jekyll_site/api
|
||||
|
||||
- name: Upload Pages Artifact
|
||||
uses: actions/upload-pages-artifact@v5
|
||||
with:
|
||||
path: build/_site/
|
||||
path: build/jekyll_site/
|
||||
|
||||
deploy:
|
||||
if: github.repository == 'meshtastic/Meshtastic-Android'
|
||||
|
||||
Reference in New Issue
Block a user