Files
MapLibreParticleLab/.github/workflows/gh-pages-docc.yml
dependabot[bot] 2055a06fe0 Bump the github-actions group across 1 directory with 18 updates (#4196)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2026-03-31 22:17:14 +00:00

75 lines
2.0 KiB
YAML

name: gh-pages-docc
permissions:
id-token: write
pages: write
contents: write
on:
workflow_dispatch:
workflow_run:
workflows:
- ios-ci
types:
- completed
jobs:
gh-pages-docc-build:
if: ${{ github.ref_name == 'main' }}
name: Build DocC Docs
runs-on: macos-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@8df5847569e6427dd6c4fb1cf565c83acfa8afa7 # 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
# workaround since colons in filenames are not allowed in artifacts
# https://github.com/actions/upload-artifact/issues/333
- name: Create ZIP archive
run: |
cd build
zip -r docs.zip docs/
- uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
with:
name: docc-docs
path: build/docs.zip
gh-pages-docc-deploy:
needs: gh-pages-docc-build
name: Deploy DocC Docs
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v4
- name: Download DocC docs artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v4
with:
name: docc-docs
path: build
- name: Unzip documentation
run: |
cd build
unzip docs.zip
rm docs.zip
- name: Deploy DocC documentation (main) 🚀
uses: JamesIves/github-pages-deploy-action@d92aa235d04922e8f08b40ce78cc5442fcfbfa2f # v4.8.0
with:
branch: gh-pages
folder: build/docs
target-folder: ios/latest/