Skip to content

Commit 6a84e15

Browse files
Merge pull request #5 from alexanderjordanbaker/GHPagesDocGeneration
Adding auto-publishing documentation to github pages
2 parents f88c928 + ad19c08 commit 6a84e15

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/ci-release-docs.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Doc Builder
2+
on:
3+
release:
4+
types: [published]
5+
permissions:
6+
pages: write
7+
id-token: write
8+
jobs:
9+
build:
10+
name: Doc Builder
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Code
14+
uses: actions/checkout@v3
15+
- name: Set up Swift 5.8
16+
uses: swift-actions/setup-swift@v1
17+
with:
18+
swift-version: 5.8
19+
- name: Swift build
20+
run: swift build
21+
- name: Build docs
22+
run: swift package --allow-writing-to-directory docs generate-documentation --target AppStoreServerLibrary --product AppStoreServerLibrary --disable-indexing --hosting-base-path app-store-server-library-swift --output-path docs
23+
- name: Upload docs
24+
uses: actions/upload-pages-artifact@v2
25+
with:
26+
path: docs
27+
deploy:
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
needs: build
32+
runs-on: ubuntu-latest
33+
name: Deploy docs
34+
steps:
35+
- name: Deploy
36+
id: deployment
37+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)