-
-
Notifications
You must be signed in to change notification settings - Fork 507
30 lines (27 loc) · 730 Bytes
/
docs.yml
File metadata and controls
30 lines (27 loc) · 730 Bytes
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
name: Documentation
on:
push:
branches:
- main
- docs
# Cancel any in-progress workflow runs for the same branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
jazzy:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Jazzy
run: sudo gem install jazzy
- name: Resolve Swift Package dependencies
run: xcodebuild -resolvePackageDependencies
- name: Generate Documentation
run: ./docs.sh
continue-on-error: false
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs