-
-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (27 loc) · 796 Bytes
/
deploy-docs.yml
File metadata and controls
36 lines (27 loc) · 796 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
34
35
36
name: Deploy Docs
on:
release:
types: [published]
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
deploy:
runs-on: macos-15
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/configure-pages@v5
- name: Build docs
run: swift package --allow-writing-to-directory ./docs generate-documentation --target LLMChatOpenAI --disable-indexing --output-path ./docs --transform-for-static-hosting --hosting-base-path swift-llm-chat-openai
- uses: actions/upload-pages-artifact@v3
with:
path: "docs"
- uses: actions/deploy-pages@v4
id: deployment