-
Notifications
You must be signed in to change notification settings - Fork 19
82 lines (79 loc) · 2.56 KB
/
documentation.yaml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Documentation
on:
push:
branches:
- master
paths:
- '.github/workflows/documentation.yml'
- 'Sources/**/*.swift'
- 'Sources/**/*.md'
pull_request:
branches:
- master
paths:
- '.github/workflows/documentation.yml'
- 'Sources/**/*.swift'
- 'Sources/**/*.md'
env:
DEVELOPER_DIR: /Applications/Xcode_14.2.app/Contents/Developer
NSUnbufferedIO: YES
jobs:
BuildDocumentation:
name: Build Documentation Archives
runs-on: macos-12
steps:
- uses: actions/checkout@master
- name: AuthFoundation
run: |
set -o pipefail
xcodebuild docbuild \
-derivedDataPath ~/Build/DerivedData \
-clonedSourcePackagesDirPath ~/Build/ClonedSources \
-scheme AuthFoundation | xcpretty
- name: OktaDirectAuth
run: |
set -o pipefail
xcodebuild docbuild \
-derivedDataPath ~/Build/DerivedData \
-clonedSourcePackagesDirPath ~/Build/ClonedSources \
-scheme OktaDirectAuth | xcpretty
- name: OktaOAuth2
run: |
set -o pipefail
xcodebuild docbuild \
-derivedDataPath ~/Build/DerivedData \
-clonedSourcePackagesDirPath ~/Build/ClonedSources \
-scheme OktaOAuth2 | xcpretty
- name: WebAuthenticationUI
run: |
set -o pipefail
xcodebuild docbuild \
-derivedDataPath ~/Build/DerivedData \
-clonedSourcePackagesDirPath ~/Build/ClonedSources \
-scheme WebAuthenticationUI | xcpretty
- name: Compress DocC archives
run: |
for archive in $(find ~/Build/DerivedData/Build/Products -type d -name '*.doccarchive'); do
cd $(dirname "$archive")
zip -r ~/Build/$(basename "$archive").zip $(basename "$archive")
done
- name: Upload AuthFoundation DocC Archive
uses: actions/upload-artifact@v2
with:
name: AuthFoundation.doccarchive.zip
path: ~/Build/AuthFoundation.doccarchive.zip
- name: Upload OktaDirectAuth DocC Archive
uses: actions/upload-artifact@v2
with:
name: OktaDirectAuth.doccarchive.zip
path: ~/Build/OktaDirectAuth.doccarchive.zip
- name: Upload OktaOAuth2 DocC Archive
uses: actions/upload-artifact@v2
with:
name: OktaOAuth2.doccarchive.zip
path: ~/Build/OktaOAuth2.doccarchive.zip
- name: Upload WebAuthenticationUI DocC Archive
uses: actions/upload-artifact@v2
with:
name: WebAuthenticationUI.doccarchive.zip
path: ~/Build/WebAuthenticationUI.doccarchive.zip