Merge pull request #14 from cursorinsight/denes/fixes #28
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
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: macOS-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Generate | |
run: | | |
mkdir -p ./.build/docc && \ | |
xcodebuild clean docbuild \ | |
-workspace .swiftpm/xcode/package.xcworkspace \ | |
-scheme "Trap" \ | |
-destination "generic/platform=iOS" \ | |
-derivedDataPath "./.build/docc" \ | |
OTHER_DOCC_FLAGS="--transform-for-static-hosting --hosting-base-path ci-trap-ios/ --output-path public/" | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: public |