File tree 1 file changed +47
-0
lines changed
1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build and deploy content to Pages
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ # Allows you to run this workflow manually from the Actions tab
8
+ workflow_dispatch :
9
+
10
+ permissions :
11
+ contents : read
12
+ pages : write
13
+ id-token : write
14
+
15
+ concurrency :
16
+ group : " pages"
17
+ cancel-in-progress : false
18
+
19
+ jobs :
20
+ deploy :
21
+ environment :
22
+ name : github-pages
23
+ url : ${{ steps.deployment.outputs.page_url }}
24
+ runs-on : macos-13
25
+ steps :
26
+ - name : Checkout
27
+ uses : actions/checkout@v4
28
+ -
uses :
swift-actions/[email protected]
29
+ with :
30
+ swift-version : " 5.9"
31
+ - name : Build DocC
32
+ uses : fwcd/swift-docc-action@v1
33
+ with :
34
+ target : SwiftMock
35
+ output : ' ./docs'
36
+ hosting-base-path : swift-mock
37
+ disable-indexing : ' true'
38
+ transform-for-static-hosting : ' true'
39
+ - name : Setup Pages
40
+ uses : actions/configure-pages@v3
41
+ - name : Upload artifact
42
+ uses : actions/upload-pages-artifact@v2
43
+ with :
44
+ path : ' ./docs'
45
+ - name : Deploy to GitHub Pages
46
+ id : deployment
47
+ uses : actions/deploy-pages@v2
You can’t perform that action at this time.
0 commit comments