File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments