Skip to content

Commit 8d087f3

Browse files
committed
use Swift 5.10 to build docs
1 parent f80f2e3 commit 8d087f3

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/documentation.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12+
container:
13+
image: swift:5.10
1214

1315
steps:
1416
- uses: actions/checkout@v4
15-
1617
- name: Build Docs
1718
run: |
1819
mkdir -p ./gh-pages
@@ -23,7 +24,23 @@ jobs:
2324
--transform-for-static-hosting \
2425
--hosting-base-path OpenAPIKit \
2526
--target OpenAPIKit
27+
- uses: actions/cache/save@v4
28+
with:
29+
path: gh-pages
30+
key: gh-${{ github.run_number }}-pages
31+
enableCrossOsArchive: true
2632

33+
deploy:
34+
needs: build
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: actions/cache/restore@v4
39+
with:
40+
path: gh-pages
41+
key: gh-${{ github.run_number }}-pages
42+
fail-on-cache-miss: true
43+
enableCrossOsArchive: true
2744
- name: Deploy to GitHub Pages
2845
uses: JamesIves/github-pages-deploy-action@v4.5.0
2946
with:

0 commit comments

Comments
 (0)