Skip to content

Commit 337e811

Browse files
stephencelismluisbrown
authored andcommitted
Update documentation.yml
(cherry picked from commit 7b508c2a177b74e3cdfabd7e7e981a026cbe287d)
1 parent a1cffb5 commit 337e811

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/documentation.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
build:
1010
runs-on: macos-12
1111
steps:
12+
- name: Select Xcode 14.0.1
13+
run: sudo xcode-select -s /Applications/Xcode_14.0.1.app
14+
1215
- name: Checkout Package
1316
uses: actions/checkout@v2
1417
with:
@@ -20,12 +23,14 @@ jobs:
2023
repository: apple/swift-docc
2124
ref: main
2225
path: swift-docc
26+
2327
- name: Cache DocC
2428
id: cache-docc
2529
uses: actions/cache@v2
2630
with:
2731
key: swift-url-docc-build
2832
path: swift-docc/.build
33+
2934
- name: Build swift-docc
3035
if: ${{ !steps.cache-docc.outputs.cache-hit }}
3136
run: |
@@ -37,6 +42,7 @@ jobs:
3742
repository: apple/swift-docc-render
3843
ref: main
3944
path: swift-docc-render
45+
4046
- name: Build swift-docc-render
4147
run: |
4248
cd swift-docc-render; npm install && npm run build; cd ..
@@ -52,6 +58,7 @@ jobs:
5258
rm -rf docs-out/.git;
5359
rm -rf docs-out/main;
5460
rm -rf docs-out/protocol-beta;
61+
git tag -l --sort=-v:refname | tail -n +10 | xargs rm -rf;
5562
5663
for tag in $(echo "main"; echo "protocol-beta"; git tag);
5764
do
@@ -92,6 +99,7 @@ jobs:
9299
93100
- name: Fix permissions
94101
run: 'sudo chown -R $USER docs-out'
102+
95103
- name: Publish documentation to GitHub Pages
96104
uses: JamesIves/[email protected]
97105
with:

0 commit comments

Comments
 (0)