File tree 1 file changed +0
-42
lines changed
1 file changed +0
-42
lines changed Original file line number Diff line number Diff line change 5
5
tags :
6
6
- ' *'
7
7
8
- # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9
8
permissions :
10
9
contents : write
11
- pages : write
12
- id-token : write
13
-
14
- # Allow only one concurrent deployment
15
- concurrency :
16
- group : " pages"
17
- cancel-in-progress : true
18
10
19
11
jobs :
20
- deploy_docs :
21
- runs-on : macos-13
22
- environment :
23
- name : github-pages
24
- url : ${{ steps.deployment.outputs.page_url }}
25
-
26
- steps :
27
- - uses : actions/checkout@v4
28
-
29
- - name : Select Xcode 15.2
30
- run : sudo xcode-select -s /Applications/Xcode_15.2.app
31
-
32
- - name : Build Documentation
33
- run : |
34
- swift package --allow-writing-to-directory ./docs \
35
- generate-documentation --target GroqSwift \
36
- --disable-indexing \
37
- --transform-for-static-hosting \
38
- --hosting-base-path groq_swift \
39
- --output-path ./docs
40
-
41
- - name : Setup Pages
42
- uses : actions/configure-pages@v4
43
-
44
- - name : Upload artifact
45
- uses : actions/upload-pages-artifact@v3
46
- with :
47
- path : ' ./docs'
48
-
49
- - name : Deploy to GitHub Pages
50
- id : deployment
51
- uses : actions/deploy-pages@v4
52
-
53
12
create_release :
54
13
runs-on : ubuntu-latest
55
- needs : deploy_docs
56
14
steps :
57
15
- uses : actions/checkout@v4
58
16
You can’t perform that action at this time.
0 commit comments