Skip to content

Build & Deploy mdBook documentation #794

Build & Deploy mdBook documentation

Build & Deploy mdBook documentation #794

name: gh-pages-docc
permissions:
id-token: write
pages: write
on:
workflow_dispatch:
jobs:
gh-pages-mdbook-build:
name: Build
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: ${{ vars.OIDC_AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ github.run_id }}
- name: Build DocC documentation
working-directory: .
run: |
HOSTING_BASE_PATH="maplibre-native/ios/latest" platform/ios/scripts/docc.sh
- name: Deploy DocC documentation (main) 🚀
if: github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
continue-on-error: true
with:
branch: gh-pages
folder: build/docs
target-folder: ios/latest/