Skip to content

Commit

Permalink
temp commit
Browse files Browse the repository at this point in the history
  • Loading branch information
louwers committed Jan 22, 2025
1 parent ec4d6e6 commit ba09aa5
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 35 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/gh-pages-docc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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/
59 changes: 24 additions & 35 deletions .github/workflows/gh-pages-mdbook.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,37 @@
name: Build & Deploy mdBook documentation
name: gh-pages-docc

permissions:
id-token: write
pages: write

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'docs/mdbook/**'

jobs:
gh-pages-mdbook-build:
name: Build
runs-on: ubuntu-latest
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: extractions/setup-just@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v2
- name: Install Dependencies
shell: bash
run: sudo apt-get install -y libwayland-dev libxkbcommon-dev # Required for winit
- name: Build
working-directory: docs/mdbook
shell: bash
run: mdbook build
- uses: actions/upload-artifact@v4
with:
name: book
path: docs/mdbook/book/
- name: Checkout 🛎️
uses: actions/checkout@v4

gh-pages-mdbook-deploy:
needs: gh-pages-mdbook-build
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download book
uses: actions/download-artifact@v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
name: book
path: artifacts/book
- name: Deploy
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: artifacts/book
target-folder: docs/book
folder: build/docs
target-folder: ios/latest/

0 comments on commit ba09aa5

Please sign in to comment.