Skip to content

Commit 7b508c2

Browse files
authored
Update documentation.yml
1 parent 3945b67 commit 7b508c2

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
@@ -15,6 +15,9 @@ jobs:
1515
build:
1616
runs-on: macos-12
1717
steps:
18+
- name: Select Xcode 14.0.1
19+
run: sudo xcode-select -s /Applications/Xcode_14.0.1.app
20+
1821
- name: Checkout Package
1922
uses: actions/checkout@v2
2023
with:
@@ -26,12 +29,14 @@ jobs:
2629
repository: apple/swift-docc
2730
ref: main
2831
path: swift-docc
32+
2933
- name: Cache DocC
3034
id: cache-docc
3135
uses: actions/cache@v2
3236
with:
3337
key: swift-url-docc-build
3438
path: swift-docc/.build
39+
3540
- name: Build swift-docc
3641
if: ${{ !steps.cache-docc.outputs.cache-hit }}
3742
run: |
@@ -43,6 +48,7 @@ jobs:
4348
repository: apple/swift-docc-render
4449
ref: main
4550
path: swift-docc-render
51+
4652
- name: Build swift-docc-render
4753
run: |
4854
cd swift-docc-render; npm install && npm run build; cd ..
@@ -58,6 +64,7 @@ jobs:
5864
rm -rf docs-out/.git;
5965
rm -rf docs-out/main;
6066
rm -rf docs-out/protocol-beta;
67+
git tag -l --sort=-v:refname | tail -n +10 | xargs rm -rf;
6168
6269
for tag in $(echo "main"; echo "protocol-beta"; git tag);
6370
do
@@ -98,6 +105,7 @@ jobs:
98105
99106
- name: Fix permissions
100107
run: 'sudo chown -R $USER docs-out'
108+
101109
- name: Publish documentation to GitHub Pages
102110
uses: JamesIves/[email protected]
103111
with:

0 commit comments

Comments
 (0)