mirror of
https://github.com/MessageKit/MessageKit.git
synced 2026-02-06 19:03:19 +00:00
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
name: Deploy DocC
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- "main"
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
# This allows a subsequently queued workflow run to interrupt previous runs
|
|
concurrency:
|
|
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build_docs:
|
|
runs-on: macos-15
|
|
steps:
|
|
- name: Checkout 🛎️
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build DocC
|
|
run: |
|
|
swift package resolve;
|
|
xcodebuild docbuild -scheme MessageKit -derivedDataPath /tmp/docbuild -destination 'generic/platform=iOS';
|
|
$(xcrun --find docc) process-archive \
|
|
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/MessageKit.doccarchive \
|
|
--hosting-base-path MessageKit \
|
|
--output-path docs
|
|
$(xcrun --find docc) process-archive \
|
|
transform-for-static-hosting /tmp/docbuild/Build/Products/Debug-iphoneos/InputBarAccessoryView.doccarchive \
|
|
--hosting-base-path MessageKit/InputBarAccessoryView \
|
|
--output-path docs/InputBarAccessoryView
|
|
- name: Deploy to GitHub Pages
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs
|