Skip to content

Expose a public initializer for the WebAuthn response object, and clean up API doc errors #397

Expose a public initializer for the WebAuthn response object, and clean up API doc errors

Expose a public initializer for the WebAuthn response object, and clean up API doc errors #397

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_15.3.app/Contents/Developer
NSUnbufferedIO: YES
jobs:
BuildDocumentation:
name: Build Documentation Archives
runs-on: macos-latest-large
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