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 15
15
build :
16
16
runs-on : macos-12
17
17
steps :
18
+ - name : Select Xcode 14.0.1
19
+ run : sudo xcode-select -s /Applications/Xcode_14.0.1.app
20
+
18
21
- name : Checkout Package
19
22
uses : actions/checkout@v2
20
23
with :
@@ -26,12 +29,14 @@ jobs:
26
29
repository : apple/swift-docc
27
30
ref : main
28
31
path : swift-docc
32
+
29
33
- name : Cache DocC
30
34
id : cache-docc
31
35
uses : actions/cache@v2
32
36
with :
33
37
key : swift-url-docc-build
34
38
path : swift-docc/.build
39
+
35
40
- name : Build swift-docc
36
41
if : ${{ !steps.cache-docc.outputs.cache-hit }}
37
42
run : |
43
48
repository : apple/swift-docc-render
44
49
ref : main
45
50
path : swift-docc-render
51
+
46
52
- name : Build swift-docc-render
47
53
run : |
48
54
cd swift-docc-render; npm install && npm run build; cd ..
58
64
rm -rf docs-out/.git;
59
65
rm -rf docs-out/main;
60
66
rm -rf docs-out/protocol-beta;
67
+ git tag -l --sort=-v:refname | tail -n +10 | xargs rm -rf;
61
68
62
69
for tag in $(echo "main"; echo "protocol-beta"; git tag);
63
70
do
98
105
99
106
- name : Fix permissions
100
107
run : ' sudo chown -R $USER docs-out'
108
+
101
109
- name : Publish documentation to GitHub Pages
102
110
103
111
with :
You can’t perform that action at this time.
0 commit comments