Tolerate more shapes of SourceKit output with Swift 6 (#823) #336
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: Jazzy | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: ['*'] | |
jobs: | |
Jazzy: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7 | |
bundler-cache: true # runs 'bundle install' and caches installed gems automatically | |
- run: swift build | |
- name: Generate documentation json | |
run: swift run sourcekitten doc --spm --module-name SourceKittenFramework > SourceKittenFramework.json | |
- name: Run jazzy | |
run: bundle exec jazzy --clean --sourcekitten-sourcefile SourceKittenFramework.json | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: API Docs | |
path: docs |