-
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 916 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CI
on:
push:
branches:
- main
jobs:
build:
runs-on: macos-13
timeout-minutes: 10
env:
DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer
steps:
- uses: actions/checkout@v3
- uses: swift-actions/setup-swift@v1
with:
swift-version: 5.9
- name: Get swift version
run: swift --version # Swift 5.9
- name: Build DocC
run: |
swift package \
--allow-writing-to-directory ./docs \
generate-documentation --target SearchField \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path swiftui-searchfield \
--output-path ./docs
- name: Deploy Document
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs