File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 9
9
build :
10
10
runs-on : macos-12
11
11
steps :
12
+ - name : Select Xcode 14.0.1
13
+ run : sudo xcode-select -s /Applications/Xcode_14.0.1.app
14
+
12
15
- name : Checkout Package
13
16
uses : actions/checkout@v2
14
17
with :
@@ -20,12 +23,14 @@ jobs:
20
23
repository : apple/swift-docc
21
24
ref : main
22
25
path : swift-docc
26
+
23
27
- name : Cache DocC
24
28
id : cache-docc
25
29
uses : actions/cache@v2
26
30
with :
27
31
key : swift-url-docc-build
28
32
path : swift-docc/.build
33
+
29
34
- name : Build swift-docc
30
35
if : ${{ !steps.cache-docc.outputs.cache-hit }}
31
36
run : |
37
42
repository : apple/swift-docc-render
38
43
ref : main
39
44
path : swift-docc-render
45
+
40
46
- name : Build swift-docc-render
41
47
run : |
42
48
cd swift-docc-render; npm install && npm run build; cd ..
52
58
rm -rf docs-out/.git;
53
59
rm -rf docs-out/main;
54
60
rm -rf docs-out/protocol-beta;
61
+ git tag -l --sort=-v:refname | tail -n +10 | xargs rm -rf;
55
62
56
63
for tag in $(echo "main"; echo "protocol-beta"; git tag);
57
64
do
92
99
93
100
- name : Fix permissions
94
101
run : ' sudo chown -R $USER docs-out'
102
+
95
103
- name : Publish documentation to GitHub Pages
96
104
97
105
with :
You can’t perform that action at this time.
0 commit comments