forked from mattpolzin/OpenAPIKit
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 966 Bytes
/
documentation.yml
File metadata and controls
34 lines (30 loc) · 966 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
31
32
33
name: Documentation
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
container:
image: swift:5.10
steps:
- uses: actions/checkout@v5
- name: Build Docs
run: |
mkdir -p ./gh-pages
swift package --allow-writing-to-directory ./gh-pages/docs \
generate-documentation --include-extended-types \
--disable-indexing \
--output-path ./gh-pages/docs \
--transform-for-static-hosting \
--hosting-base-path OpenAPIKit \
--target OpenAPIKit
- name: Install rsync
run: |
apt-get update && apt-get install -y rsync
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.7.3
with:
folder: gh-pages
branch: gh-pages