Accept ACR Values to authentication flows, Part 1 #403
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v4 | |
with: | |
name: AuthFoundation.doccarchive.zip | |
path: ~/Build/AuthFoundation.doccarchive.zip | |
- name: Upload OktaDirectAuth DocC Archive | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OktaDirectAuth.doccarchive.zip | |
path: ~/Build/OktaDirectAuth.doccarchive.zip | |
- name: Upload OktaOAuth2 DocC Archive | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OktaOAuth2.doccarchive.zip | |
path: ~/Build/OktaOAuth2.doccarchive.zip | |
- name: Upload WebAuthenticationUI DocC Archive | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WebAuthenticationUI.doccarchive.zip | |
path: ~/Build/WebAuthenticationUI.doccarchive.zip |