Improve SwiftUI interopability #12
Workflow file for this run
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: Document | |
on: | |
push: | |
tags: | |
- "*" | |
workflow_dispatch: | |
jobs: | |
document: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Wait for build to succeed | |
uses: fountainhead/[email protected] | |
id: wait-for-build | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: Build iOS | |
ref: ${{ github.event.pull_request.head.sha || github.sha }} | |
- name: Install Sourcekitten | |
if: steps.wait-for-build.outputs.conclusion == 'success' | |
run: brew install sourcekitten | |
- name: Install Jazzy | |
run: gem install jazzy | |
- name: Install Doc Generator | |
run: | | |
git clone https://github.com/mediamonks/MMMDocGenerator.git | |
cd MMMDocGenerator | |
swift build -c release | |
cd ../ | |
cp MMMDocGenerator/.build/release/DocGenerator . | |
- name: Generate docs | |
run: ./DocGenerator -p ${{ github.event.repository.name }} | |
- name: Publish | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs |