-
Notifications
You must be signed in to change notification settings - Fork 25
52 lines (42 loc) · 1.24 KB
/
docs.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
name: Docs Generation
on:
pull_request:
push:
branches:
- main
tags:
- '*'
jobs:
build:
runs-on: macos-latest
permissions:
deployments: write
id-token: write
steps:
- uses: actions/checkout@v2
- name: Select Specific Xcode Version (15.1)
run: |
sudo xcode-select -s /Applications/Xcode_15.1.app
echo "Selected Xcode version:"
xcodebuild -version
- name: Install Dependencies
run: |
make submodules
bundle install
make update_carthage_dependencies_macos
- name: Build Documentation
run: |
./Scripts/jazzy.sh
ls -al Docs/jazzy
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: eu-west-2
role-to-assume: arn:aws:iam::${{ secrets.ABLY_AWS_ACCOUNT_ID_SDK }}:role/ably-sdk-builds-ably-cocoa
role-session-name: "${{ github.run_id }}-${{ github.run_number }}"
- name: Upload Documentation
uses: ably/sdk-upload-action@v1
with:
sourcePath: Docs/jazzy
githubToken: ${{ secrets.GITHUB_TOKEN }}
artifactName: jazzydoc