-
-
Notifications
You must be signed in to change notification settings - Fork 348
62 lines (52 loc) · 1.46 KB
/
gh-pages-mdbook.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: gh-pages-docc
permissions:
id-token: write
pages: write
on:
workflow_dispatch:
jobs:
gh-pages-docc-build:
name: Build DocC Docs
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: Create ZIP archive
run: |
cd build
zip -r docs.zip docs/
- uses: actions/upload-artifact@v4
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: Download DocC docs artifacts
uses: actions/download-artifact@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/[email protected]
with:
branch: gh-pages
folder: build/docs
target-folder: ios/latest/